aboutsummaryrefslogtreecommitdiff
path: root/cad/kicad
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-04-29 22:27:05 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-04-29 22:27:05 +0000
commit9ff06b3cbf038359059e40e0db31ba0cbe996d0f (patch)
tree8583dfe71adaea6ce266633e1799cd602516b801 /cad/kicad
parent25c4307da135103ea810d65f96f2f1c21e0547b4 (diff)
downloadports-9ff06b3cbf038359059e40e0db31ba0cbe996d0f.tar.gz
ports-9ff06b3cbf038359059e40e0db31ba0cbe996d0f.zip
Notes
Diffstat (limited to 'cad/kicad')
-rw-r--r--cad/kicad/Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/cad/kicad/Makefile b/cad/kicad/Makefile
index aec7adb6bfb3..96e5e097c30b 100644
--- a/cad/kicad/Makefile
+++ b/cad/kicad/Makefile
@@ -38,11 +38,13 @@ WRKSRC= ${WRKDIR}/${SFNAME}
PLIST_SUB= DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||}
-.if defined(WITHOUT_NLS)
-PLIST_SUB+= NLS="@comment "
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
+.else
+PLIST_SUB+= NLS="@comment "
.endif
SFNAME= ${PORTNAME}-sources-${DISTVERSION}
@@ -59,7 +61,7 @@ RUN_DEPENDS+= konqueror:${PORTSDIR}/x11/kdebase3
RUN_DEPENDS+= xpdf:${PORTSDIR}/graphics/xpdf
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
post-extract:
cd ${WRKSRC} && ${TAR} -xf ${DISTDIR}/${DFNAME}.tgz
.endif
@@ -72,14 +74,14 @@ pre-configure:
${WRKSRC}/common/gestfich.cpp
post-install:
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
${MKDIR} ${DATADIR}/internat
(cd ${WRKSRC}/internat && \
${COPYTREE_SHARE} \* ${DATADIR}/internat)
${RM} ${DATADIR}/internat/CMakeLists.txt
${FIND} ${DATADIR}/internat -name kicad.po -delete
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
(cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif
@${ECHO_MSG}