blob: 0e6043fffd7461ea67d13f10f2deca12d65d5f97 (
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
|
# $NetBSD: Makefile,v 1.9 2012/10/08 13:45:41 asau Exp $
#
DISTNAME= libpaper_1.1.24
PKGNAME= ${DISTNAME:S/_/-/}
CATEGORIES= print
MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/libp/libpaper/}
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://packages.debian.org/unstable/libs/libpaper1
COMMENT= Paper size handling library
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
USE_LIBTOOL= yes
USE_TOOLS+= gmake
EGDIR= ${PREFIX}/share/examples/libpaper
CONF_FILES= ${EGDIR}/papersize ${PKG_SYSCONFDIR}/papersize
BUILD_DEFS= PAPERSIZE
.include "../../devel/libgetopt/buildlink3.mk"
post-build:
PAPERCONF=${WRKDIR}/papersize PATH=${WRKSRC}/src:$${PATH} ${SH} \
${WRKSRC}/src/paperconfig -p ${PAPERSIZE}
post-install:
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKDIR}/papersize ${DESTDIR}${EGDIR}/papersize
.include "../../mk/bsd.pkg.mk"
|