diff options
author | jlam <jlam@pkgsrc.org> | 2008-03-03 17:45:33 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-03-03 17:45:33 +0000 |
commit | e655762fb793a09bcd629a5ee8889dfe5b1550a0 (patch) | |
tree | 620d08cc8bf79f9bacb7746632192670c7d6350d /devel/libgetopt | |
parent | 2d370b7fe4d16560d65355fc39f74d9ef5e1f0c9 (diff) | |
download | pkgsrc-e655762fb793a09bcd629a5ee8889dfe5b1550a0.tar.gz |
Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
Diffstat (limited to 'devel/libgetopt')
-rw-r--r-- | devel/libgetopt/Makefile | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/devel/libgetopt/Makefile b/devel/libgetopt/Makefile index fb0fe847542..c375262547e 100644 --- a/devel/libgetopt/Makefile +++ b/devel/libgetopt/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.28 2008/02/22 01:27:55 tnn Exp $ +# $NetBSD: Makefile,v 1.29 2008/03/03 17:45:35 jlam Exp $ # DISTNAME= libgetopt-1.4.3 @@ -9,6 +9,8 @@ DISTFILES= # empty MAINTAINER= pkgsrc-users@NetBSD.org COMMENT= Library for handling --long options +PKG_DESTDIR_SUPPORT= user-destdir + NO_CHECKSUM= YES USE_LIBTOOL= YES WRKSRC= ${WRKDIR}/libgetopt @@ -31,8 +33,10 @@ do-build: cd ${WRKSRC} && ${LIBTOOL} --mode=link ${LINK.c} -o libgetopt.la getopt_long.lo -version-info 5:1:4 -rpath ${PREFIX}/lib do-install: - ${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/libgetopt.la ${PREFIX}/lib/ - ${INSTALL_DATA} ${WRKSRC}/getopt.h ${PREFIX}/include/ - ${INSTALL_MAN} ${WRKSRC}/getopt_long.3 ${PREFIX}/${PKGMANDIR}/man3/ + ${LIBTOOL} --mode=install ${INSTALL_LIB} ${WRKSRC}/libgetopt.la \ + ${DESTDIR}${PREFIX}/lib/ + ${INSTALL_DATA} ${WRKSRC}/getopt.h ${DESTDIR}${PREFIX}/include/ + ${INSTALL_MAN} ${WRKSRC}/getopt_long.3 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man3/ .include "../../mk/bsd.pkg.mk" |