1999-12-30 13:31:24 +01:00
|
|
|
# New ports collection makefile for: popt
|
|
|
|
# Date Created: 29 Dec 1999
|
|
|
|
# Whom: Yuan-Chen Cheng <ycheng@sinica.edu.tw>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2000-04-11 23:30:15 +02:00
|
|
|
PORTNAME= popt
|
2004-06-24 16:07:07 +02:00
|
|
|
PORTVERSION= 1.7
|
2006-02-23 11:40:44 +01:00
|
|
|
PORTREVISION= 1
|
1999-12-30 13:31:24 +01:00
|
|
|
CATEGORIES= devel
|
2004-08-19 00:59:35 +02:00
|
|
|
MASTER_SITES= ftp://ftp.rpm.org/pub/rpm/dist/%SUBDIR%/ \
|
|
|
|
http://rpmfind.net/linux/rpm.org/rpm/dist/%SUBDIR%/ \
|
2004-08-19 01:31:08 +02:00
|
|
|
ftp://ftp.mirrorservice.org/sites/ftp.rpm.org/pub/rpm/dist/%SUBDIR%/ \
|
2004-08-19 00:59:35 +02: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 13:31:24 +01:00
|
|
|
|
2005-07-18 05:49:55 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-23 20:58:35 +01:00
|
|
|
COMMENT= A getopt(3) like library with a number of enhancements, from Redhat
|
1999-12-30 13:31:24 +01:00
|
|
|
|
2004-08-19 00:59:35 +02:00
|
|
|
BUILD_DEPENDS= xgettext:${PORTSDIR}/devel/gettext
|
|
|
|
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2002-07-11 15:23:29 +02:00
|
|
|
USE_REINPLACE= yes
|
2000-06-16 23:52:40 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
2004-08-19 00:59:35 +02:00
|
|
|
|
|
|
|
MAN3= popt.3
|
|
|
|
|
2004-06-24 16:07:07 +02:00
|
|
|
CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \
|
|
|
|
--program-prefix=""
|
1999-12-30 13:31:24 +01:00
|
|
|
|
2004-08-19 00:59:35 +02:00
|
|
|
.if defined(WITHOUT_NLS)
|
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.else
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.endif
|
1999-12-30 13:31:24 +01:00
|
|
|
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET=--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2004-08-19 00:59:35 +02:00
|
|
|
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2002-07-11 15:23:29 +02:00
|
|
|
|
2004-10-12 02:18:04 +02:00
|
|
|
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
|
|
|
|
|
1999-12-30 13:31:24 +01:00
|
|
|
.include <bsd.port.mk>
|