1999-12-30 12:31:24 +00:00
|
|
|
# New ports collection makefile for: popt
|
|
|
|
# Date Created: 29 Dec 1999
|
|
|
|
# Whom: Yuan-Chen Cheng <ycheng@sinica.edu.tw>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-11 21:30:15 +00:00
|
|
|
PORTNAME= popt
|
2004-06-24 14:07:07 +00:00
|
|
|
PORTVERSION= 1.7
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTREVISION= 4
|
1999-12-30 12:31:24 +00:00
|
|
|
CATEGORIES= devel
|
2004-08-18 22:59:35 +00:00
|
|
|
MASTER_SITES= ftp://ftp.rpm.org/pub/rpm/dist/%SUBDIR%/ \
|
|
|
|
http://rpmfind.net/linux/rpm.org/rpm/dist/%SUBDIR%/ \
|
2004-08-18 23:31:08 +00:00
|
|
|
ftp://ftp.mirrorservice.org/sites/ftp.rpm.org/pub/rpm/dist/%SUBDIR%/ \
|
2004-08-18 22:59:35 +00:00
|
|
|
http://gd.tuwien.ac.at/utils/rpm.org/dist/%SUBDIR%/ \
|
|
|
|
ftp://sunsite.cnlab-switch.ch/mirror/rpm/dist/%SUBDIR%/ \
|
|
|
|
ftp://ftp.sunfreeware.com/pub/freeware/SOURCES/
|
|
|
|
MASTER_SITE_SUBDIR= rpm-4.1.x
|
1999-12-30 12:31:24 +00:00
|
|
|
|
2007-04-07 04:13:33 +00:00
|
|
|
MAINTAINER= josh@tcbug.org
|
2003-02-23 19:58:35 +00:00
|
|
|
COMMENT= A getopt(3) like library with a number of enhancements, from Redhat
|
1999-12-30 12:31:24 +00:00
|
|
|
|
2006-02-23 10:40:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2006-11-28 08:37:27 +00:00
|
|
|
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"
|
|
|
|
|
2007-02-01 02:42:05 +00:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
2006-08-14 22:55:18 +00:00
|
|
|
USE_LDCONFIG= yes
|
2004-08-18 22:59:35 +00:00
|
|
|
|
|
|
|
MAN3= popt.3
|
|
|
|
|
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
2006-11-28 08:37:27 +00:00
|
|
|
# gettext 0.13 or higher
|
|
|
|
USE_GETTEXT= [^0-5]
|
2004-08-18 22:59:35 +00:00
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.endif
|
1999-12-30 12:31:24 +00:00
|
|
|
|
2004-10-12 00:18:04 +00:00
|
|
|
pre-configure:
|
2006-11-28 08:37:27 +00:00
|
|
|
# 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
|
2004-10-12 00:18:04 +00:00
|
|
|
|
1999-12-30 12:31:24 +00:00
|
|
|
.include <bsd.port.mk>
|