[48307] trunk/dports/science/qucs

Ryan Schmidt ryandesign at macports.org
Sat Mar 21 04:03:42 PDT 2009


On Mar 18, 2009, at 16:08, rowue at macports.org wrote:

> +patchfiles          patch-configure.diff
> +post-destroot {
> +    xinstall -m 755 -d ${destroot}/Applications/MacPorts/Qucs.app/ 
> Contents/MacOS
> +    ln -s ${prefix}/bin/qucs ${destroot}/Applications/MacPorts/ 
> Qucs.app/Contents/MacOS/Qucs
> +}

Please use ${applications_dir} instead of /Applications/MacPorts.


> Added: trunk/dports/science/qucs/files/patch-configure.diff
> ===================================================================
> --- trunk/dports/science/qucs/files/patch- 
> configure.diff	                        (rev 0)
> +++ trunk/dports/science/qucs/files/patch-configure.diff	2009-03-18  
> 21:08:07 UTC (rev 48307)
> @@ -0,0 +1,11 @@
> +--- configure.orig	2008-04-10 15:21:51.000000000 +0200
> ++++ configure	2009-03-18 21:28:50.000000000 +0100
> +@@ -6005,7 +6005,7 @@
> + paths="$QTDIR/include /usr/local/qt/include /usr/include/qt /usr/ 
> include/qt3 \
> +   /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/X11/qt \
> +   /usr/X11R6/include/qt /usr/X11R6/include /sw/include/qt \
> +-  /usr/X11R6/include/qt2"
> ++  /usr/X11R6/include/qt2 /opt/local/include/qt3"
> + for path in $paths; do
> +   if test -f "$path/qapplication.h"; then
> +     QT_INCLUDES=$path

You mustn't hardcode /opt/local into your patches since MacPorts  
could be installed in a different prefix.




More information about the macports-dev mailing list