# New ports collection makefile for: gopod # Date created: 4 April 2005 # Whom: Emanuel Haupt # # $FreeBSD$ # PORTNAME= gopod PORTVERSION= 1.3 CATEGORIES= misc MASTER_SITES= http://gopod.free-go.net/gopod/ \ http://critical.ch/distfiles/ PKGNAMEPREFIX?= DISTNAME= goPod-${PORTVERSION}_linux_bsd MAINTAINER= ehaupt@FreeBSD.org COMMENT?= Utility to cap/uncap an iPod HAS_CONFIGURE= yes USE_GMAKE= yes USE_REINPLACE= yes RESTRICTED= "Unclear legal status in EU countries" .if ${PKGNAMEPREFIX} == "" PLIST_FILES= bin/gopod WRKSRC= ${WRKDIR}/${DISTNAME}/console-version .endif PORTDOCS= README_EN README_FR post-patch: .if ${PKGNAMEPREFIX} == "gtk-" @${REINPLACE_CMD} -e 's|%%DATADIR%%|${DATADIR}|' ${WRKSRC}/main.c .endif @${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//' ${WRKSRC}/main.c @${REINPLACE_CMD} -e 's|\($$(CC)\)|\1 ${CFLAGS}|; /strip/d' \ ${WRKSRC}/Makefile do-install: .if ${PKGNAMEPREFIX} == "" ${INSTALL_PROGRAM} -m 0110 ${WRKSRC}/${PORTNAME} ${PREFIX}/bin .else @${MKDIR} ${DATADIR} .for f in ${DATAFILES} ${INSTALL_DATA} ${WRKSRC}/gfx/${f} ${DATADIR} .endfor ${INSTALL_PROGRAM} -m 0110 ${WRKSRC}/${PORTNAME} \ ${PREFIX}/bin/${UNIQUENAME} .endif .if !defined(NOPORTDOCS) @${MKDIR} ${DOCSDIR} .for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} .endfor .endif post-install: @${CAT} ${PKGMESSAGE} .include