pkgsrc/devel/libhfs/Makefile

44 lines
1.3 KiB
Makefile
Raw Normal View History

2017-08-16 22:21:03 +02:00
# $NetBSD: Makefile,v 1.19 2017/08/16 20:21:08 wiz Exp $
#
DISTNAME= hfsutils-3.2.6
PKGNAME= libhfs-3.2.6
PKGREVISION= 2
1999-10-17 20:36:33 +02:00
CATEGORIES= devel sysutils
MASTER_SITES= ftp://ftp.mars.org/pub/hfs/
MAINTAINER= pkgsrc-users@NetBSD.org
2017-08-16 22:21:03 +02:00
HOMEPAGE= https://www.mars.org/home/rob/proj/hfs/
COMMENT= Library for accessing HFS (Apple Macintosh) volumes
GNU_CONFIGURE= yes
2000-08-14 19:38:56 +02:00
USE_LIBTOOL= yes
BUILD_TARGET= all_lib
CPPFLAGS= -I.
INSTALLATION_DIRS= lib
pre-patch:
for f in librsrc/librsrc.h libhfs/libhfs.h; do \
${MV} ${WRKSRC}/$$f ${WRKSRC}/$$f-prepatch; \
${SED} -e '/Id/s|\$$||g' ${WRKSRC}/$$f-prepatch > ${WRKSRC}/$$f; \
done
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/include/libhfs
cd ${WRKSRC}/libhfs; \
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} libhfs.la \
${DESTDIR}${PREFIX}/lib; \
${INSTALL_DATA} apple.h data.h hfs.h libhfs.h \
${DESTDIR}${PREFIX}/include/libhfs
cd ${WRKSRC}/librsrc; \
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} librsrc.la \
${DESTDIR}${PREFIX}/lib; \
${INSTALL_DATA} librsrc.h rsrc.h ${DESTDIR}${PREFIX}/include/libhfs
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/libhfs
cd ${WRKSRC}/doc; ${INSTALL_DATA} charset.txt libhfs.txt librsrc.txt \
${DESTDIR}${PREFIX}/share/doc/libhfs
.include "../../mk/bsd.pkg.mk"