Bug 86870

Summary: [PATCH] gpac-libm4systems ports does not compile on FreeBSD < 5
Product: Ports & Packages Reporter: Sven Berkvens-Matthijsse <sven>
Component: Individual Port(s)Assignee: Michael Johnson <ahze>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Sven Berkvens-Matthijsse 2005-10-03 12:30:10 UTC
The port gpac-libm4systems does not compile on FreeBSD 4.x. The reason
is that the Makefile tries to patch some files that are not present and
leaves a file that needs patches untouched.

Fix: 

Change the post-patch rule from:

.if ${OSVERSION} < 500000
	@${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|' \
		${WRKSRC}/include/gpac/m4_config.h
	@${RM} -f ${WRKSRC}/include/gpac/m4_config.h.bak
	@${REINPLACE_CMD} -e 's|^M||' \
		${WRKSRC}/include/gpac/m4_descriptors.h \
		${WRKSRC}/M4Systems/authoring/TextImport.c
	@${RM} -f ${WRKSRC}/include/gpac/m4_descriptors.h.bak
.endif  
	${CHMOD} +x ${WRKSRC}/configure


to:

post-patch:
.if ${OSVERSION} < 500000
	@${REINPLACE_CMD} -e 's|stdint.h|inttypes.h|' \
		${WRKSRC}/include/gpac/setup.h
	@${RM} -f ${WRKSRC}/include/gpac/setup.h.bak
.endif
        ${CHMOD} +x ${WRKSRC}/configure
How-To-Repeat: Try to install the multimedia/gpac-libm4systems port on FreeBSD 4.x.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2005-10-03 15:43:17 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ahze

Over to maintainer.
Comment 2 Michael Johnson freebsd_committer freebsd_triage 2005-10-03 17:06:45 UTC
State Changed
From-To: open->closed

Committed, Thanks!