pkgsrc/devel/libhfs/Makefile

42 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.15 2005/12/15 22:14:15 joerg Exp $
#
DISTNAME= hfsutils-3.2.6
PKGNAME= libhfs-3.2.6
PKGREVISION= 2
CATEGORIES= devel sysutils
MASTER_SITES= ftp://ftp.mars.org/pub/hfs/
MAINTAINER= wrstuden@NetBSD.org
HOMEPAGE= http://www.mars.org/home/rob/proj/hfs/
COMMENT= Library for accessing HFS (Apple Macintosh) volumes
GNU_CONFIGURE= yes
CPPFLAGS= -I.
USE_LIBTOOL= yes
BUILD_TARGET= all_lib
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} ${PREFIX}/include/libhfs
cd ${WRKSRC}/libhfs; \
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} libhfs.la ${PREFIX}/lib; \
${INSTALL_DATA} apple.h data.h hfs.h libhfs.h ${PREFIX}/include/libhfs
cd ${WRKSRC}/librsrc; \
${LIBTOOL} --mode=install ${INSTALL_PROGRAM} librsrc.la ${PREFIX}/lib; \
${INSTALL_DATA} librsrc.h rsrc.h ${PREFIX}/include/libhfs
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/libhfs
cd ${WRKSRC}/doc; ${INSTALL_DATA} charset.txt libhfs.txt librsrc.txt \
${PREFIX}/share/doc/libhfs
.include "../../mk/bsd.pkg.mk"