DESTDIR support

This commit is contained in:
joerg 2010-02-04 17:29:59 +00:00
parent 399649a194
commit 9b5d43d667
6 changed files with 37 additions and 26 deletions

View file

@ -1,12 +1,11 @@
# $NetBSD: Makefile,v 1.8 2006/02/05 23:10:13 joerg Exp $
# $NetBSD: Makefile,v 1.9 2010/02/04 17:37:51 joerg Exp $
#
PKGNAME= ${DISTNAME:S/-/-mysql-/}
PKGREVISION= 2
COMMENT= WS 23xx weather station MySQL support
PATCHDIR= ${.CURDIR}/../open2300/patches
DISTINFO_FILE= ${.CURDIR}/../open2300/distinfo
PKG_DESTDIR_SUPPORT= user-destdir
BUILD_TARGET= mysql2300
INSTALL_TARGET= install-mysql
@ -15,5 +14,7 @@ LIBS+= -lmysqlclient
LIBS.SunOS+= -lnsl -lsocket
MAKE_ENV+= LIBS=${LIBS:M*:Q}
INSTALLATION_DIRS+= bin
.include "../../mk/mysql.buildlink3.mk"
.include "../../misc/open2300/Makefile.common"

View file

@ -1,6 +1,10 @@
# $NetBSD: Makefile,v 1.1.1.1 2004/11/10 08:19:46 martin Exp $
# $NetBSD: Makefile,v 1.2 2010/02/04 17:37:51 joerg Exp $
#
PKG_DESTDIR_SUPPORT= user-destdir
COMMENT= WS 23xx weather station support software
INSTALLATION_DIRS+= bin
.include "Makefile.common"

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile.common,v 1.5 2005/07/31 13:35:37 grant Exp $
# $NetBSD: Makefile.common,v 1.6 2010/02/04 17:37:51 joerg Exp $
#
DISTNAME= open2300-1.8
@ -8,4 +8,7 @@ MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=open2300/}
MAINTAINER= martin@NetBSD.org
HOMEPAGE= http://open2300.sourceforge.net/
PATCHDIR= ${.CURDIR}/../open2300/patches
DISTINFO_FILE= ${.CURDIR}/../open2300/distinfo
.include "../../mk/bsd.pkg.mk"

View file

@ -1,8 +1,8 @@
$NetBSD: distinfo,v 1.7 2005/07/31 14:03:28 grant Exp $
$NetBSD: distinfo,v 1.8 2010/02/04 17:37:51 joerg Exp $
SHA1 (open2300-1.8.tar.gz) = 86fd2dcdef995498ed17062dd4b8df5db6b3383d
RMD160 (open2300-1.8.tar.gz) = d0b7618cfa7d0ea92708d949fd4521311627865f
Size (open2300-1.8.tar.gz) = 330320 bytes
SHA1 (patch-aa) = 9bdd5011c60b2af676d9f86b96e18d67cad6bf0d
SHA1 (patch-aa) = b008ae36711b3f0543555d6cc00afa3a03c04d67
SHA1 (patch-ab) = 9437137a36e434fcabde6acc5373be04523357e9
SHA1 (patch-ac) = 48762f4c60ca475031659cad94701a1bc83b6795

View file

@ -1,4 +1,4 @@
$NetBSD: patch-aa,v 1.4 2005/07/31 14:03:28 grant Exp $
$NetBSD: patch-aa,v 1.5 2010/02/04 17:37:51 joerg Exp $
--- Makefile.orig 2004-11-13 11:25:31.000000000 +1100
+++ Makefile
@ -53,22 +53,22 @@ $NetBSD: patch-aa,v 1.4 2005/07/31 14:03:28 grant Exp $
- $(INSTALL) interval2300 $(bindir)
- $(INSTALL) minmax2300 $(bindir)
-
+ ${BSD_INSTALL_PROGRAM} open2300 $(bindir)
+ ${BSD_INSTALL_PROGRAM} dump2300 $(bindir)
+ ${BSD_INSTALL_PROGRAM} log2300 $(bindir)
+ ${BSD_INSTALL_PROGRAM} fetch2300 $(bindir)
+ ${BSD_INSTALL_PROGRAM} wu2300 $(bindir)
+ ${BSD_INSTALL_PROGRAM} cw2300 $(bindir)
+ ${BSD_INSTALL_PROGRAM} histlog2300 $(bindir)
+ ${BSD_INSTALL_PROGRAM} xml2300 $(bindir)
+ ${BSD_INSTALL_PROGRAM} light2300 $(bindir)
+ ${BSD_INSTALL_PROGRAM} interval2300 $(bindir)
+ ${BSD_INSTALL_PROGRAM} minmax2300 $(bindir)
+ ${BSD_INSTALL_DATA_DIR} ${PREFIX}/share/examples/open2300
+ ${BSD_INSTALL_DATA} open2300-dist.conf ${PREFIX}/share/examples/open2300/open2300.conf
+ ${BSD_INSTALL_PROGRAM} open2300 ${DESTDIR}$(bindir)
+ ${BSD_INSTALL_PROGRAM} dump2300 ${DESTDIR}$(bindir)
+ ${BSD_INSTALL_PROGRAM} log2300 ${DESTDIR}$(bindir)
+ ${BSD_INSTALL_PROGRAM} fetch2300 ${DESTDIR}$(bindir)
+ ${BSD_INSTALL_PROGRAM} wu2300 ${DESTDIR}$(bindir)
+ ${BSD_INSTALL_PROGRAM} cw2300 ${DESTDIR}$(bindir)
+ ${BSD_INSTALL_PROGRAM} histlog2300 ${DESTDIR}$(bindir)
+ ${BSD_INSTALL_PROGRAM} xml2300 ${DESTDIR}$(bindir)
+ ${BSD_INSTALL_PROGRAM} light2300 ${DESTDIR}$(bindir)
+ ${BSD_INSTALL_PROGRAM} interval2300 ${DESTDIR}$(bindir)
+ ${BSD_INSTALL_PROGRAM} minmax2300 ${DESTDIR}$(bindir)
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/open2300
+ ${BSD_INSTALL_DATA} open2300-dist.conf ${DESTDIR}${PREFIX}/share/examples/open2300/open2300.conf
+
+install-mysql:
+ ${BSD_INSTALL_PROGRAM} mysql2300 $(bindir)
+ ${BSD_INSTALL_PROGRAM} mysql2300 ${DESTDIR}$(bindir)
+
uninstall:
rm -f $(bindir)/open2300 $(bindir)/dump2300 $(bindir)/log2300 $(bindir)/fetch2300 $(bindir)/wu2300 $(bindir)/cw2300 $(bindir)/xml2300 $(bindir)/light2300 $(bindir)/interval2300 $(bindir)/minmax2300

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.12 2006/03/04 21:30:13 jlam Exp $
# $NetBSD: Makefile,v 1.13 2010/02/04 17:29:59 joerg Exp $
#
DISTNAME= sci-0.5.6
@ -9,15 +9,18 @@ MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://linuxparts.com/software.html
COMMENT= Curses based data entry via templates
PKG_DESTDIR_SUPPORT= user-destdir
GNU_CONFIGURE= yes
INSTALLATION_DIRS+= share/doc/sci share/examples/sci
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/sci ${PREFIX}/share/examples/sci
for i in COPYING README INSTALL NEWS ; do \
${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/share/doc/sci ; \
${INSTALL_DATA} ${WRKSRC}/$$i ${DESTDIR}${PREFIX}/share/doc/sci ; \
done
for i in samples/* ; do \
${INSTALL_DATA} ${WRKSRC}/$$i ${PREFIX}/share/examples/sci ; \
${INSTALL_DATA} ${WRKSRC}/$$i ${DESTDIR}${PREFIX}/share/examples/sci ; \
done
.include "../../mk/bsd.pkg.mk"