2004-01-20 05:45:05 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= replex
|
2010-06-03 11:41:56 +02:00
|
|
|
PORTVERSION= 0.1.6.8
|
2005-02-02 22:35:21 +01:00
|
|
|
PORTEPOCH= 1
|
2004-01-20 05:45:05 +01:00
|
|
|
CATEGORIES= multimedia
|
2015-05-14 12:15:04 +02:00
|
|
|
MASTER_SITES= LOCAL/dinoex
|
2004-01-20 05:45:05 +01:00
|
|
|
|
2006-12-02 20:36:18 +01:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2004-01-20 05:45:05 +01:00
|
|
|
COMMENT= Remultiplex an MPEG2 TS into a PS for DVD
|
|
|
|
|
2013-12-07 06:07:42 +01:00
|
|
|
USES= gmake
|
2013-10-27 23:29:46 +01:00
|
|
|
MAKE_ARGS= CFLAGS="${CFLAGS}" DEFINES="${CPPFLAGS} -DO_LARGEFILE=0 \
|
2015-11-21 20:14:39 +01:00
|
|
|
-DVERSION=\\\"${PORTVERSION}\\\"" LIBS="${LDFLAGS}"
|
2005-10-13 21:18:56 +02:00
|
|
|
PLIST_FILES= bin/replex
|
|
|
|
|
2014-02-21 14:38:20 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2013-10-27 23:29:46 +01:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2005-10-13 21:18:56 +02:00
|
|
|
PORTDOCS= CHANGES README TODO
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${GREP} -lR "<stdint\.h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
|
|
|
|
's|<stdint\.h>|<inttypes.h>|g'
|
2010-06-11 10:50:24 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-m32||' -e \
|
2005-10-13 21:18:56 +02:00
|
|
|
's|-L. -lreplex|libreplex.a $${LIBS}|g' ${WRKSRC}/Makefile
|
2004-01-20 05:45:05 +01:00
|
|
|
|
|
|
|
do-install:
|
2013-10-27 23:29:46 +01:00
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/replex ${STAGEDIR}${PREFIX}/bin/
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/CHANGES ${STAGEDIR}${DOCSDIR}/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}/
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/TODO ${STAGEDIR}${DOCSDIR}/
|
2004-01-20 05:45:05 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|