aboutsummaryrefslogtreecommitdiffstats
path: root/cad/kicad
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-04-30 06:27:05 +0800
committerbapt <bapt@FreeBSD.org>2013-04-30 06:27:05 +0800
commit31426e557795495adeb04aa9e16edb4c93184379 (patch)
tree8583dfe71adaea6ce266633e1799cd602516b801 /cad/kicad
parentb36431c8212c7fe9fc83e2f7412d5935b6e10e6e (diff)
downloadfreebsd-ports-gnome-31426e557795495adeb04aa9e16edb4c93184379.tar.gz
freebsd-ports-gnome-31426e557795495adeb04aa9e16edb4c93184379.tar.zst
freebsd-ports-gnome-31426e557795495adeb04aa9e16edb4c93184379.zip
Convert a bunch of ports from WITHOUT_NLS -> ${PORT_OPTIONS:MNLS}
While here: - trim headers - convert to new options framework
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}