blob: 2486716feea761204a23667180511ecdb42a85f4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# New ports collection makefile for: popt
# Date Created: 29 Dec 1999
# Whom: Yuan-Chen Cheng <ycheng@sinica.edu.tw>
#
# $FreeBSD$
#
PORTNAME= popt
PORTVERSION= 1.14
CATEGORIES= devel
MASTER_SITES= ftp://ftp.sunfreeware.com/pub/freeware/SOURCES/
MASTER_SITE_SUBDIR= rpm-4.1.x
MAINTAINER= jpaetzel@FreeBSD.org
COMMENT= A getopt(3) like library with a number of enhancements, from Redhat
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \
--program-prefix=""
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
USE_AUTOTOOLS= libtool:22
USE_LDCONFIG= yes
MAN3= popt.3
.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.else
# gettext 0.13 or higher
USE_GETTEXT= [^0-5]
PLIST_SUB+= NLS=""
.endif
pre-configure:
# 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>
|