summaryrefslogtreecommitdiff
path: root/archivers/dpkg/Makefile
blob: a55b2447e7b00d663482c88538ec07b78c333a7d (plain)
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
# Created by: Hye-Shik Chang <perky@FreeBSD.org>
# $FreeBSD$

PORTNAME=	dpkg
PORTVERSION=	1.19.4
CATEGORIES=	archivers sysutils
MASTER_SITES=	DEBIAN_POOL
DISTNAME=	dpkg_${PORTVERSION}

MAINTAINER=	ndowens@yahoo.com
COMMENT=	Debian package maintenance system

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	po4a:textproc/po4a \
		gtar:archivers/gtar \
		gpatch:devel/patch
RUN_DEPENDS=	gtar:archivers/gtar \
		gpatch:devel/patch

USES=		compiler:c11 cpe gmake iconv libtool ncurses perl5 pkgconfig \
		tar:xz

CPE_VENDOR=	debian
WRKSRC=		${WRKDIR}/dpkg-${PORTVERSION}
DPKGDIR?=	/var/db/dpkg
PLIST_SUB=	DPKGDIR=${DPKGDIR}

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--with-admindir=${DPKGDIR} \
		--libdir=${PREFIX}/libexec \
		--with-libintl-prefix=${LOCALBASE} \
		--with-logdir=/var/log \
		--with-libmd
CONFIGURE_ENV=	PERL_LIBDIR="${PREFIX}/${SITE_PERL_REL}"

OPTIONS_DEFINE=	NLS
OPTIONS_SUB=	yes

NLS_CONFIGURE_ENABLE=	nls
NLS_USES=		gettext-runtime

post-install:
	(cd ${STAGEDIR}${DPKGDIR} && ${TOUCH} available.sample \
		diversions.sample statoverride.sample status.sample)

.include <bsd.port.mk>