aboutsummaryrefslogtreecommitdiff
path: root/textproc/libexttextcat
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2012-09-26 08:19:30 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2012-09-26 08:19:30 +0000
commit6f25c5fe28e17d2cbba42d82710eda085a829617 (patch)
tree6f239ee1d2548f3ef3d12c36a4c0800ed41175f2 /textproc/libexttextcat
parent6d251f0820a977f13120cf8efdbfe58396469f6b (diff)
downloadports-6f25c5fe28e17d2cbba42d82710eda085a829617.tar.gz
ports-6f25c5fe28e17d2cbba42d82710eda085a829617.zip
Convert to OptionsNG
Removed never used code
Notes
Notes: svn path=/head/; revision=304882
Diffstat (limited to 'textproc/libexttextcat')
-rw-r--r--textproc/libexttextcat/Makefile20
1 files changed, 5 insertions, 15 deletions
diff --git a/textproc/libexttextcat/Makefile b/textproc/libexttextcat/Makefile
index 5ac00efc77e6..d9cf059102e5 100644
--- a/textproc/libexttextcat/Makefile
+++ b/textproc/libexttextcat/Makefile
@@ -1,9 +1,4 @@
-# New ports collection makefile for: libexttextcat
-# Date created: 2012-01-21
-# Whom: Baptiste Daroussin <bapt@FreeBSD.org>
-#
# $FreeBSD$
-#
PORTNAME= libexttextcat
PORTVERSION= 3.3.1
@@ -25,24 +20,19 @@ USE_LDCONFIG= yes
PORTDOCS= README README.libtextcat TODO
-OPTIONS= COMPAT_TEXTCAT "Install libtextcat compatible files" Off
+OPTIONS_DEFINE= COMPAT_TEXTCAT DOCS
+COMPAT_TEXTCAT_DESC= Install libtextcat compatible files
.include <bsd.port.options.mk>
-.if defined(WITH_COMPAT_TEXTCAT)
+.if ${PORT_OPTIONS:MCOMPAT_TEXTCAT}
PLIST_SUB+= TEXTCAT=''
.else
PLIST_SUB+= TEXTCAT='@comment '
.endif
-.if defined(WITH_LM_FILES)
-PLIST_SUB+= LM=''
-.else
-PLIST_SUB+= LM='@comment '
-.endif
-
post-install:
-.if defined(WITH_COMPAT_TEXTCAT)
+.if ${PORT_OPTIONS:MCOMPAT_TEXTCAT}
${LN} -sf libexttextcat/textcat.h ${PREFIX}/include/
${LN} -sf libexttextcat ${PREFIX}/include/libtextcat
${LN} -sf libexttextcat-1.0.a ${PREFIX}/lib/libtextcat.a
@@ -50,7 +40,7 @@ post-install:
${LN} -sf libexttextcat-1.0.so.0 ${PREFIX}/lib/libtextcat.so
${LN} -sf libexttextcat-1.0.so.0 ${PREFIX}/lib/libtextcat.so.0
.endif
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif