INSTALL/DEINSTALL script creation within pkgsrc. If an INSTALL or DEINSTALL script is found in the package directory, it is automatically used as a template for the pkginstall-generated scripts. If instead, they should be used simply as the full scripts, then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC explicitly, e.g.: INSTALL_SRC= ${PKGDIR}/INSTALL DEINSTALL_SRC= # emtpy As part of the restructuring of the pkginstall framework internals, we now *always* generate temporary INSTALL or DEINSTALL scripts. By comparing these temporary scripts with minimal INSTALL/DEINSTALL scripts formed from only the base templates, we determine whether or not the INSTALL/DEINSTALL scripts are actually needed by the package (see the generate-install-scripts target in bsd.pkginstall.mk). In addition, more variables in the framework have been made private. The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are more sensible names given the very few exported variables in this framework. The only public variables relating to the templates are: INSTALL_SRC INSTALL_TEMPLATE DEINSTALL_SRC DEINSTALL_TEMPLATE HEADER_TEMPLATE The packages in pkgsrc have been modified to reflect the changes in the pkginstall framework.
45 lines
1.7 KiB
Makefile
45 lines
1.7 KiB
Makefile
# $NetBSD: Makefile,v 1.25 2006/03/14 01:14:27 jlam Exp $
|
|
|
|
DISTNAME= w32api-2.5-src
|
|
PKGNAME= w32api-2.5
|
|
#PKGREVISION= 2
|
|
PKGREVISION= 1
|
|
CATEGORIES= devel
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mingw/}
|
|
DISTFILES+= ${DISTNAME}.tar.gz pe-crt-1.2.1.tar.gz
|
|
SITES_pe-crt-1.2.1.tar.gz=http://www.hauN.org/kent/
|
|
|
|
MAINTAINER= peace-sacrifice@hauN.org
|
|
HOMEPAGE= http://www.mingw.org/
|
|
COMMENT= Free headers and libraries for the Win32 API
|
|
|
|
BUILD_DEPENDS+= cross-i386-netbsdpe>=3.3:../../cross/i386-netbsdpe
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
|
|
PE_CC= ${CROSSBASE}/bin/i386-netbsdpe-cc -I${WRKSRC}/include
|
|
PE_AR= ${CROSSBASE}/bin/i386-netbsdpe-ar
|
|
CRTWRKSRC= ${WRKDIR}/pe-crt-1.2.1
|
|
PE_CPPFLAGS+= -I${WRKSRC}/include
|
|
MAKE_FLAGS+= PE_CPPFLAGS=${PE_CPPFLAGS:Q}
|
|
|
|
# Building no import libraries but two static libraries.
|
|
do-build:
|
|
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
|
|
${_PKG_SILENT}cd ${CRTWRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS}
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${CROSSBASE}/i386-netbsdpe/include
|
|
${INSTALL_DATA} ${WRKSRC}/include/*.h ${CROSSBASE}/i386-netbsdpe/include
|
|
${INSTALL_DATA_DIR} ${CROSSBASE}/i386-netbsdpe/include/GL
|
|
${INSTALL_DATA} ${WRKSRC}/include/GL/*.h ${CROSSBASE}/i386-netbsdpe/include/GL
|
|
${INSTALL_DATA_DIR} ${CROSSBASE}/i386-netbsdpe/include/ddk
|
|
${INSTALL_DATA} ${WRKSRC}/include/ddk/*.h ${CROSSBASE}/i386-netbsdpe/include/ddk
|
|
${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
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|