aboutsummaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorVasil Dimov <vd@FreeBSD.org>2006-11-28 08:37:27 +0000
committerVasil Dimov <vd@FreeBSD.org>2006-11-28 08:37:27 +0000
commitf867b74a64023460d84007f7e60794b379d8b35f (patch)
treeb6ddb0582c373af88d1a933cb91e38d3c775fe51 /devel
parent2ce916c337011a7d3d8b0ed61fa499669dfc7420 (diff)
downloadports-f867b74a64023460d84007f7e60794b379d8b35f.tar.gz
ports-f867b74a64023460d84007f7e60794b379d8b35f.zip
Notes
Diffstat (limited to 'devel')
-rw-r--r--devel/popt/Makefile29
1 files changed, 13 insertions, 16 deletions
diff --git a/devel/popt/Makefile b/devel/popt/Makefile
index fad97012c3b1..ba5da94a8f38 100644
--- a/devel/popt/Makefile
+++ b/devel/popt/Makefile
@@ -7,7 +7,7 @@
PORTNAME= popt
PORTVERSION= 1.7
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= ftp://ftp.rpm.org/pub/rpm/dist/%SUBDIR%/ \
http://rpmfind.net/linux/rpm.org/rpm/dist/%SUBDIR%/ \
@@ -20,33 +20,30 @@ MASTER_SITE_SUBDIR= rpm-4.1.x
MAINTAINER= ports@FreeBSD.org
COMMENT= A getopt(3) like library with a number of enhancements, from Redhat
-BUILD_DEPENDS= xgettext:${PORTSDIR}/devel/gettext
-
GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \
+ --program-prefix=""
+CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
USE_LDCONFIG= yes
MAN3= popt.3
-CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \
- --program-prefix=""
-
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.else
-USE_GETTEXT= yes
+# gettext 0.13 or higher
+USE_GETTEXT= [^0-5]
PLIST_SUB+= NLS=""
.endif
-CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
-
-CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
- LDFLAGS="-L${LOCALBASE}/lib"
-
pre-configure:
- @if [ -n "`${PKG_INFO} -I 'gettext-0.1[012].*' 2>/dev/null`" ]; then \
- ${ECHO_CMD} "${PKGNAME}: requires at least gettext 0.13, please upgrade your installed version."; \
- ${FALSE}; \
- fi
+# remove check for xgettext - popt do not use it anyway
+ @${REINPLACE_CMD} -e \
+ 's:if test ! -f ../rpm.c:if test "1" != "1":' \
+ ${WRKSRC}/configure
.include <bsd.port.mk>