diff options
Diffstat (limited to 'devel/w32api/Makefile')
-rw-r--r-- | devel/w32api/Makefile | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/devel/w32api/Makefile b/devel/w32api/Makefile index 54eaf36e079..72fc5378ded 100644 --- a/devel/w32api/Makefile +++ b/devel/w32api/Makefile @@ -1,12 +1,14 @@ -# $NetBSD: Makefile,v 1.10 2002/05/12 10:16:46 abs Exp $ -# $PEACE: Makefile,v 1.18 2001/12/16 16:23:38 kent Exp $ +# $NetBSD: Makefile,v 1.11 2002/08/21 12:59:17 kent Exp $ +# $PEACE: Makefile,v 1.21 2002/08/21 02:02:27 kent Exp $ -DISTNAME= w32api-1.2-src -PKGNAME= w32api-1.2 -PKGREVISION= 2 +DISTNAME= w32api-1.5-src +PKGNAME= w32api-1.5 +PKGREVISION= 1 WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//} CATEGORIES= devel MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mingw/} +DISTFILES+= ${DISTNAME}.tar.gz pe-crt-1.2.tar.gz +SITES_pe-crt-1.2.tar.gz=http://www.hauN.org/kent/ MAINTAINER= peace-sacrifice@hauN.org HOMEPAGE= http://www.mingw.org/ @@ -16,6 +18,8 @@ BUILD_DEPENDS+= cross-i386-netbsdpe:../../cross/i386-netbsdpe PE_CC= ${CROSSBASE}/bin/i386-netbsdpe-cc -I${WRKSRC}/include PE_AR= ${CROSSBASE}/bin/i386-netbsdpe-ar +CRTWRKSRC= ${WRKDIR}/pe-crt-1.2 +CFLAGS+= -I${WRKDIR}/include # Building no import libraries but two static libraries. do-build: @@ -28,11 +32,15 @@ do-build: for i in ${WRKSRC}/include/*.h; do \ ${SED} 's/(CALLBACK/ CALLBACK (/g; s/typedef \(.*\)(NTAPI/typedef \1 NTAPI (/g; s/typedef \(.*\)(WINAPI/typedef \1 WINAPI (/g; s/typedef \(.*\)(STDAPICALLTYPE/typedef \1 STDAPICALLTYPE (/g; s/typedef \(.*\)(APIENTRY/typedef \1 APIENTRY (/g; s/typedef \(.*\)(PASCAL/typedef \1 PASCAL (/g; s/typedef \(.*\)(STDCALL/typedef \1 STDCALL (/g; s/typedef \(.*\)(__RPC_API/typedef \1 __RPC_API (/g; s/typedef \(.*\)(__RPC_USER/typedef \1 __RPC_USER (/g; s/typedef \(.*\)(__stdcall/typedef \1 __stdcall (/g; s/typedef \(.*\)(__RPC_STUB/typedef \1 __RPC_STUB (/g' $$i > ${WRKDIR}/include/`basename $$i`; \ done + ${_PKG_SILENT}cd ${CRTWRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} do-install: ${INSTALL_DATA_DIR} ${CROSSBASE}/i386-netbsdpe/include ${INSTALL_DATA} ${WRKDIR}/include/*.h ${CROSSBASE}/i386-netbsdpe/include ${INSTALL_DATA_DIR} ${CROSSBASE}/i386-netbsdpe/lib ${INSTALL_DATA} ${WRKSRC}/lib/lib*.a ${CROSSBASE}/i386-netbsdpe/lib + ${_PKG_SILENT}cd ${CRTWRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} install +post-install: + PKG_PREFIX=${LOCALBASE} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL .include "../../mk/bsd.pkg.mk" |