2004-03-09 13:21:58 +01:00
|
|
|
# $NetBSD: Makefile,v 1.20 2004/03/09 12:21:58 kent Exp $
|
2001-01-30 04:20:51 +01:00
|
|
|
|
2004-03-09 13:21:58 +01:00
|
|
|
DISTNAME= w32api-2.5-src
|
|
|
|
PKGNAME= w32api-2.5
|
|
|
|
#PKGREVISION= 2
|
2002-03-18 04:25:46 +01:00
|
|
|
CATEGORIES= devel
|
2002-05-12 12:16:44 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mingw/}
|
2003-09-21 18:03:39 +02:00
|
|
|
DISTFILES+= ${DISTNAME}.tar.gz pe-crt-1.2.1.tar.gz
|
|
|
|
SITES_pe-crt-1.2.1.tar.gz=http://www.hauN.org/kent/
|
2001-01-30 04:20:51 +01:00
|
|
|
|
2002-03-18 04:25:46 +01:00
|
|
|
MAINTAINER= peace-sacrifice@hauN.org
|
|
|
|
HOMEPAGE= http://www.mingw.org/
|
|
|
|
COMMENT= Free headers and libraries for the Win32 API
|
2001-01-30 04:20:51 +01:00
|
|
|
|
2004-03-09 13:21:58 +01:00
|
|
|
BUILD_DEPENDS+= cross-i386-netbsdpe>=3.3:../../cross/i386-netbsdpe
|
2001-01-30 04:20:51 +01:00
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
|
2002-03-18 04:25:46 +01:00
|
|
|
PE_CC= ${CROSSBASE}/bin/i386-netbsdpe-cc -I${WRKSRC}/include
|
|
|
|
PE_AR= ${CROSSBASE}/bin/i386-netbsdpe-ar
|
2003-09-21 18:03:39 +02:00
|
|
|
CRTWRKSRC= ${WRKDIR}/pe-crt-1.2.1
|
2004-03-09 13:21:58 +01:00
|
|
|
PE_CPPFLAGS+= -I${WRKSRC}/include
|
2003-09-21 18:03:39 +02:00
|
|
|
MAKE_FLAGS+= PE_CPPFLAGS="${PE_CPPFLAGS}"
|
2001-01-30 04:20:51 +01:00
|
|
|
|
2003-08-31 00:51:11 +02:00
|
|
|
USE_PKGINSTALL= yes
|
|
|
|
DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/DEINSTALL
|
|
|
|
INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
|
2003-08-30 20:48:34 +02:00
|
|
|
|
2001-10-21 14:39:05 +02:00
|
|
|
# Building no import libraries but two static libraries.
|
2001-01-30 04:20:51 +01:00
|
|
|
do-build:
|
2001-10-21 14:39:05 +02:00
|
|
|
cd ${WRKSRC}/lib \
|
|
|
|
&& ${PE_CC} -c -o dxguid.o dxguid.c \
|
|
|
|
&& ${PE_CC} -c -o uuid.o uuid.c \
|
|
|
|
&& ${PE_AR} r libdxguid.a dxguid.o \
|
|
|
|
&& ${PE_AR} r libuuid.a uuid.o
|
2003-09-21 18:03:39 +02:00
|
|
|
${_PKG_SILENT}cd ${CRTWRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS}
|
2001-01-30 04:20:51 +01:00
|
|
|
|
|
|
|
do-install:
|
2004-03-09 13:21:58 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/*.h ${CROSSBASE}/i386-netbsdpe/include
|
2003-09-21 18:03:39 +02:00
|
|
|
${INSTALL_DATA_DIR} ${CROSSBASE}/i386-netbsdpe/include/GL
|
2004-03-09 13:21:58 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/GL/*.h ${CROSSBASE}/i386-netbsdpe/include/GL
|
2003-09-21 18:03:39 +02:00
|
|
|
${INSTALL_DATA_DIR} ${CROSSBASE}/i386-netbsdpe/include/ddk
|
2004-03-09 13:21:58 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/include/ddk/*.h ${CROSSBASE}/i386-netbsdpe/include/ddk
|
2001-11-02 01:30:10 +01:00
|
|
|
${INSTALL_DATA_DIR} ${CROSSBASE}/i386-netbsdpe/lib
|
2001-10-21 14:39:05 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/lib/lib*.a ${CROSSBASE}/i386-netbsdpe/lib
|
2002-08-21 14:59:17 +02:00
|
|
|
${_PKG_SILENT}cd ${CRTWRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} install
|
2001-01-30 04:20:51 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|