aboutsummaryrefslogtreecommitdiffstats
path: root/devel/popt/Makefile
blob: c04862422621cdf7aab41719bb8c558a13eab0a6 (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
44
45
46
47
48
49
50
51
52
# New ports collection makefile for:    popt
# Date Created:             29 Dec 1999
# Whom:                 Yuan-Chen Cheng <ycheng@sinica.edu.tw>
#
# $FreeBSD$
#

PORTNAME=   popt
PORTVERSION=    1.7
PORTREVISION=   1
CATEGORIES= devel
MASTER_SITES=   ftp://ftp.rpm.org/pub/rpm/dist/%SUBDIR%/ \
        http://rpmfind.net/linux/rpm.org/rpm/dist/%SUBDIR%/ \
        ftp://ftp.mirrorservice.org/sites/ftp.rpm.org/pub/rpm/dist/%SUBDIR%/ \
        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

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
INSTALLS_SHLIB= 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
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

.include <bsd.port.mk>