pkgsrc/emulators/DatLib/Makefile
jlam 0bb78c6c9d Mechanical changes to add DESTDIR support to packages that install
their files via a custom do-install target.
2008-03-03 19:21:37 +00:00

39 lines
1.4 KiB
Makefile

# $NetBSD: Makefile,v 1.22 2008/03/03 19:21:37 jlam Exp $
#
DISTNAME= datlib221
PKGNAME= DatLib-2.21
CATEGORIES= emulators
MASTER_SITES= http://www.logiqx.com/Tools/DatLib/
EXTRACT_SUFX= .zip
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.logiqx.com/Tools/DatLib/DatLib.php
COMMENT= Data file library for some emulation tools
PKG_DESTDIR_SUPPORT= user-destdir
USE_TOOLS+= gmake
WRKSRC= ${WRKDIR}
MAKE_FILE= makefile
BUILD_TARGET= datlib
EXTRACT_OPTS_ZIP= -Laaqo
MAKE_ENV+= RANLIB=${RANLIB:Q}
INSTALLATION_DIRS= lib
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/DatLib
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/DatLib/hash
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/DatLib/mame
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/DatLib/misc
${INSTALL_DATA} ${WRKSRC}/src/*.h ${DESTDIR}${PREFIX}/include/DatLib
${INSTALL_DATA} ${WRKSRC}/src/hash/*.h ${DESTDIR}${PREFIX}/include/DatLib/hash
${INSTALL_DATA} ${WRKSRC}/src/mame/*.h ${DESTDIR}${PREFIX}/include/DatLib/mame
${INSTALL_DATA} ${WRKSRC}/src/misc/*.h ${DESTDIR}${PREFIX}/include/DatLib/misc
${INSTALL_LIB} ${WRKSRC}/obj/libdatlib.a ${DESTDIR}${PREFIX}/lib/libdatlib.a
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/DatLib
${INSTALL_DATA} ${WRKSRC}/*.txt ${DESTDIR}${PREFIX}/share/doc/DatLib
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"