aboutsummaryrefslogtreecommitdiff
path: root/cad/kicad
diff options
context:
space:
mode:
authorThierry Thomas <thierry@FreeBSD.org>2007-07-16 19:07:54 +0000
committerThierry Thomas <thierry@FreeBSD.org>2007-07-16 19:07:54 +0000
commit5ac3fc536edea3af01fb350270375ca1730492e4 (patch)
tree67b0b44fc446d524d97f1f7e5864ebb8069b5e81 /cad/kicad
parent99fad474f75640034ea16c1f873204fbd2f58064 (diff)
downloadports-5ac3fc536edea3af01fb350270375ca1730492e4.tar.gz
ports-5ac3fc536edea3af01fb350270375ca1730492e4.zip
Notes
Diffstat (limited to 'cad/kicad')
-rw-r--r--cad/kicad/Makefile5
-rw-r--r--cad/kicad/pkg-plist3
2 files changed, 5 insertions, 3 deletions
diff --git a/cad/kicad/Makefile b/cad/kicad/Makefile
index 12c7c479b393..d0ad538f4892 100644
--- a/cad/kicad/Makefile
+++ b/cad/kicad/Makefile
@@ -40,7 +40,8 @@ USE_GNOME= atk # Required by libwx_gtk2_aui-2.8.so
#TODO Add support for Python.
INSTDIR= ${PORTNAME}
-PLIST_SUB= INSTDIR=${INSTDIR} OPSYS=${OPSYS}
+PLIST_SUB= INSTDIR=${INSTDIR} OPSYS=${OPSYS} \
+ DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||}
DOS2CNV= makefile.gtk makefile.include libs.linux
BINS= cvpcb eeschema gerbview kicad pcbnew
@@ -85,7 +86,7 @@ pre-configure:
${WRKSRC}/common/eda_doc.cpp
pre-install:
- ${MKDIR} ${PREFIX}/${INSTDIR}/${OPSYS}/plugins
+ ${MKDIR} ${PREFIX}/${INSTDIR}/${OPSYS}/plugins ${DESKTOPDIR}
(cd ${PREFIX} && ${TAR} -xzopf ${_DISTDIR}/${PORTNAME}-${DISTVERSION}.tgz)
${SED} -e 's|Exec=/usr/local/kicad/linux|Exec=$(PREFIX)/bin|' \
-e 's|Icon=/usr/local/kicad/linux|Icon=${PREFIX}/${INSTDIR}|' \
diff --git a/cad/kicad/pkg-plist b/cad/kicad/pkg-plist
index 735f81ec1983..3ff94de0eee9 100644
--- a/cad/kicad/pkg-plist
+++ b/cad/kicad/pkg-plist
@@ -1214,7 +1214,8 @@
%%INSTDIR%%/tutorial/Kicad_Tutorial_ru.odt
%%INSTDIR%%/tutorial/Tutorial_Kicad_FR.odt
%%INSTDIR%%/version.txt
-share/applications/kicad.desktop
+%%DESKTOPDIR%%/kicad.desktop
+@dirrmtry %%DESKTOPDIR%%
@dirrm %%INSTDIR%%/tutorial
@dirrm %%INSTDIR%%/template
@dirrm %%INSTDIR%%/modules/packages3d/valves