pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/w32api Convert to use bsd.pkg.install.mk
details: https://anonhg.NetBSD.org/pkgsrc/rev/55dc8d6c4b4b
branches: trunk
changeset: 460443:55dc8d6c4b4b
user: jlam <jlam%pkgsrc.org@localhost>
date: Sat Aug 30 18:48:34 2003 +0000
description:
Convert to use bsd.pkg.install.mk
diffstat:
devel/w32api/DEINSTALL | 17 +----------------
devel/w32api/INSTALL | 18 +-----------------
devel/w32api/Makefile | 4 +++-
3 files changed, 5 insertions(+), 34 deletions(-)
diffs (87 lines):
diff -r 906cb6e37e68 -r 55dc8d6c4b4b devel/w32api/DEINSTALL
--- a/devel/w32api/DEINSTALL Sat Aug 30 18:47:51 2003 +0000
+++ b/devel/w32api/DEINSTALL Sat Aug 30 18:48:34 2003 +0000
@@ -1,19 +1,9 @@
-#!/bin/sh
-#
-# $NetBSD: DEINSTALL,v 1.2 2003/04/10 15:25:45 kent Exp $
+# $NetBSD: DEINSTALL,v 1.3 2003/08/30 18:48:34 jlam Exp $
# $PEACE: DEINSTALL,v 1.1 2002/08/21 02:02:26 kent Exp $
-PKGNAME=$1
-STAGE=$2
-
-RM=/bin/rm
-RMDIR=/bin/rmdir
-
CROSSINC=${PKG_PREFIX}/cross/i386-netbsdpe/include
case ${STAGE} in
-DEINSTALL)
- ;;
POST-DEINSTALL)
${RM} ${CROSSINC}/ctype.h
${RM} ${CROSSINC}/stdio.h
@@ -26,9 +16,4 @@
${RM} ${CROSSINC}/sys/param.h
${RMDIR} ${CROSSINC}/sys
;;
-*)
- echo "Unexpected argument: ${STAGE}"
- exit 1
- ;;
esac
-exit 0
diff -r 906cb6e37e68 -r 55dc8d6c4b4b devel/w32api/INSTALL
--- a/devel/w32api/INSTALL Sat Aug 30 18:47:51 2003 +0000
+++ b/devel/w32api/INSTALL Sat Aug 30 18:48:34 2003 +0000
@@ -1,20 +1,9 @@
-#!/bin/sh
-#
-# $NetBSD: INSTALL,v 1.2 2003/04/10 15:25:45 kent Exp $
+# $NetBSD: INSTALL,v 1.3 2003/08/30 18:48:35 jlam Exp $
# $PEACE: INSTALL,v 1.1 2002/08/21 02:02:27 kent Exp $
-PKGNAME=$1
-STAGE=$2
-
-SED=/usr/bin/sed
-LN=/bin/ln
-MKDIR=/bin/mkdir
-
CROSSINC=${PKG_PREFIX}/cross/i386-netbsdpe/include
case ${STAGE} in
-PRE-INSTALL)
- ;;
POST-INSTALL)
${SED} "s/^extern const/__declspec(dllimport) extern const/g" /usr/include/ctype.h > ${CROSSINC}/ctype.h
${SED} "s/^extern FILE/__declspec(dllimport) extern FILE/" /usr/include/stdio.h > ${CROSSINC}/stdio.h
@@ -27,9 +16,4 @@
${MKDIR} ${CROSSINC}/sys
${SED} "s/FSHIFT/SYS_PARAM_FSHIFT/g" /usr/include/sys/param.h > ${CROSSINC}/sys/param.h
;;
-*)
- echo "Unexpected argument: ${STAGE}"
- exit 1
- ;;
esac
-exit 0
diff -r 906cb6e37e68 -r 55dc8d6c4b4b devel/w32api/Makefile
--- a/devel/w32api/Makefile Sat Aug 30 18:47:51 2003 +0000
+++ b/devel/w32api/Makefile Sat Aug 30 18:48:34 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2003/08/25 06:06:10 kent Exp $
+# $NetBSD: Makefile,v 1.15 2003/08/30 18:48:35 jlam Exp $
# $PEACE: Makefile,v 1.21 2002/08/21 02:02:27 kent Exp $
DISTNAME= w32api-1.5-src
@@ -21,6 +21,8 @@
CRTWRKSRC= ${WRKDIR}/pe-crt-1.2
CFLAGS+= -I${WRKDIR}/include
+USE_PKGINSTALL= yes
+
# Building no import libraries but two static libraries.
do-build:
cd ${WRKSRC}/lib \
Home |
Main Index |
Thread Index |
Old Index