aboutsummaryrefslogtreecommitdiff
path: root/multimedia/replex/Makefile
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2005-10-13 19:18:56 +0000
committerRenato Botelho <garga@FreeBSD.org>2005-10-13 19:18:56 +0000
commit9eeb2b4a0c3cef877116b5f13e16f7f3c606bfe5 (patch)
tree62841e105d3d3bc6677b4d749b8ec016adaa3999 /multimedia/replex/Makefile
parent1fb2a4c12d8828f93b24eef313aefddb3a42604b (diff)
downloadports-9eeb2b4a0c3cef877116b5f13e16f7f3c606bfe5.tar.gz
ports-9eeb2b4a0c3cef877116b5f13e16f7f3c606bfe5.zip
Notes
Diffstat (limited to 'multimedia/replex/Makefile')
-rw-r--r--multimedia/replex/Makefile30
1 files changed, 16 insertions, 14 deletions
diff --git a/multimedia/replex/Makefile b/multimedia/replex/Makefile
index fa32e910f035..79fcc3d70a9f 100644
--- a/multimedia/replex/Makefile
+++ b/multimedia/replex/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= replex
-PORTVERSION= 0.1.3
-PORTREVISION= 1
+PORTVERSION= 0.1.4
PORTEPOCH= 1
CATEGORIES= multimedia
MASTER_SITES= http://www.metzlerbros.org/dvb/
@@ -15,13 +14,23 @@ MASTER_SITES= http://www.metzlerbros.org/dvb/
MAINTAINER= ports@FreeBSD.org
COMMENT= Remultiplex an MPEG2 TS into a PS for DVD
-USE_GMAKE= yes
USE_REINPLACE= yes
USE_GETOPT_LONG= yes
-CFLAGS+= -I${LOCALBASE}/include -DO_LARGEFILE=0
-MAKE_ENV+= LDFLAGS="${LDFLAGS}"
-TOFIX= avi.h element.h mpg_common.h pes.h replex.h ringbuffer.h \
- replex.c ts.c
+USE_GMAKE= yes
+MAKE_ARGS= CFLAGS="${CFLAGS}" DEFINES="${CPPFLAGS} -DO_LARGEFILE=0" \
+ LIBS="${LDFLAGS}"
+
+PLIST_FILES= bin/replex
+
+.if !defined(NOPORTDOCS)
+PORTDOCS= CHANGES README TODO
+.endif
+
+post-patch:
+ @${GREP} -lR "<stdint\.h>" ${WRKSRC} | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|<stdint\.h>|<inttypes.h>|g'
+ @${REINPLACE_CMD} -e \
+ 's|-L. -lreplex|libreplex.a $${LIBS}|g' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/replex ${PREFIX}/bin/
@@ -32,11 +41,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR}/
.endif
-do-configure:
-.if !exists(/usr/include/stdint.h)
-.for i in ${TOFIX}
- @${REINPLACE_CMD} -e 's|stdint.h|sys/types.h|g' ${WRKSRC}/${i}
-.endfor
-.endif
-
.include <bsd.port.mk>