37 lines
1 KiB
Makefile
37 lines
1 KiB
Makefile
# $NetBSD: Makefile,v 1.23 2008/08/02 18:32:15 dholland Exp $
|
|
#
|
|
|
|
DISTNAME= rio007
|
|
PKGNAME= rio-1.07
|
|
CATEGORIES= audio
|
|
MASTER_SITES= http://www.world.co.uk/sba/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.world.co.uk/sba/rio.html
|
|
COMMENT= Utility to display and manage files on the Diamond Rio PMP300
|
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-x86_64
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
WRKSRC= ${WRKDIR}/rio107
|
|
MAKE_FILE= makefile
|
|
USE_LANGUAGES= c++
|
|
LIBS.NetBSD= -l$(MACHINE_ARCH)
|
|
|
|
INSTALLATION_DIRS= bin
|
|
SPECIAL_PERMS= bin/rio ${SETUID_ROOT_PERMS}
|
|
|
|
do-build:
|
|
cd ${WRKSRC} && ${CXX} ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} ${LIBS} app.cpp rio.cpp -o rio
|
|
${SED} ${FILES_SUBST_SED} ${FILESDIR}/find-lpt-port > ${WRKSRC}/find-lpt-port.sh
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/rio ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/rio
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/rio
|
|
${INSTALL_SCRIPT} ${WRKSRC}/find-lpt-port.sh \
|
|
${DESTDIR}${PREFIX}/bin/find-lpt-port
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|