summaryrefslogtreecommitdiffstats
path: root/devel/idutils/Makefile
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-03-28 16:30:10 +0000
committerkrion <krion@FreeBSD.org>2004-03-28 16:30:10 +0000
commit1106a58c44c1313e53c4b033ae369253bef3e5f3 (patch)
tree214e1f98119baed2d4ec56ab74548f9df2bff7e4 /devel/idutils/Makefile
parent87eae12a4a0344676a55be2e8d49d0be22f54430 (diff)
downloadFreeBSD-ports-1106a58c44c1313e53c4b033ae369253bef3e5f3.zip
FreeBSD-ports-1106a58c44c1313e53c4b033ae369253bef3e5f3.tar.gz
- Support WITHOUT_NLS
- Support INFO - Remove unnecessary BUILD_DEPENDS PR: ports/64854 Submitted by: Ports Fury
Diffstat (limited to 'devel/idutils/Makefile')
-rw-r--r--devel/idutils/Makefile24
1 files changed, 19 insertions, 5 deletions
diff --git a/devel/idutils/Makefile b/devel/idutils/Makefile
index a9fcf0a..07d8b9d 100644
--- a/devel/idutils/Makefile
+++ b/devel/idutils/Makefile
@@ -7,7 +7,7 @@
PORTNAME= id-utils
PORTVERSION= 3.2d
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_GNU_ALPHA}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -15,12 +15,26 @@ MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= ports@FreeBSD.org
COMMENT= The classic Berkeley gid/lid tools for looking up variables in code
-# need to byte-compile a .el file
-BUILD_DEPENDS= emacs:${PORTSDIR}/editors/emacs20
-
CONFLICTS= coreutils-* sh-utils-*
-GNU_CONFIGURE= yes
+USE_REINPLACE= yes
USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+INFO= id-utils
+
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.endif
+
+post-patch:
+ @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|@EMACS@|no|g'
.include <bsd.port.mk>
OpenPOWER on IntegriCloud