summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2003-08-30 18:48:34 +0000
committerjlam <jlam@pkgsrc.org>2003-08-30 18:48:34 +0000
commita1da828c6422d38eded793e9bbe0cc3eb284d327 (patch)
treeea694240da4e90d879ab4a2f8f530e02707272ec /devel
parent1281c649df27f7a31a3fb27e4ded1a66d2835d69 (diff)
downloadpkgsrc-a1da828c6422d38eded793e9bbe0cc3eb284d327.tar.gz
Convert to use bsd.pkg.install.mk
Diffstat (limited to 'devel')
-rw-r--r--devel/w32api/DEINSTALL17
-rw-r--r--devel/w32api/INSTALL18
-rw-r--r--devel/w32api/Makefile4
3 files changed, 5 insertions, 34 deletions
diff --git a/devel/w32api/DEINSTALL b/devel/w32api/DEINSTALL
index 52d4de69964..39ca09ffe4b 100644
--- a/devel/w32api/DEINSTALL
+++ b/devel/w32api/DEINSTALL
@@ -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 @@ POST-DEINSTALL)
${RM} ${CROSSINC}/sys/param.h
${RMDIR} ${CROSSINC}/sys
;;
-*)
- echo "Unexpected argument: ${STAGE}"
- exit 1
- ;;
esac
-exit 0
diff --git a/devel/w32api/INSTALL b/devel/w32api/INSTALL
index e76f33245fd..1aac4ce5cb0 100644
--- a/devel/w32api/INSTALL
+++ b/devel/w32api/INSTALL
@@ -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 @@ POST-INSTALL)
${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 --git a/devel/w32api/Makefile b/devel/w32api/Makefile
index 97f7f2722e5..ee98b9fb174 100644
--- a/devel/w32api/Makefile
+++ b/devel/w32api/Makefile
@@ -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 @@ PE_AR= ${CROSSBASE}/bin/i386-netbsdpe-ar
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 \