Bug 80509 - [maintainer] update audio/ocp 0.1.5 -> 0.1.6
Summary: [maintainer] update audio/ocp 0.1.5 -> 0.1.6
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jean-Yves Lefort
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-01 18:30 UTC by Emanuel Haupt
Modified: 2005-05-02 10:37 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Emanuel Haupt 2005-05-01 18:30:02 UTC
this patch updates audio/ocp from version 0.1.5 to 0.1.6

- most FreeBSD related patches are merged to this release
- x11 support is now optional
- no more suid mode required for "g"-mode
- quick find functionality added
- speed improvements
- for maintainer debugging convenience WITH_DEBUG knob has
  been added


--- audio-ocp.patch start ---
diff -ru ocp-0.1.5/Makefile ocp/Makefile
--- ocp-0.1.5/Makefile	Mon Apr 25 02:01:17 2005
+++ ocp/Makefile	Sun May  1 19:01:35 2005
@@ -6,8 +6,7 @@
 #
 
 PORTNAME=	ocp
-PORTVERSION=	0.1.5
-PORTREVISION=	1
+PORTVERSION=	0.1.6
 CATEGORIES=	audio
 MASTER_SITES=	http://labs.nixia.no/
 
@@ -21,7 +20,6 @@
 
 ONLY_FOR_ARCHS=	i386
 
-USE_XLIB=	yes
 GNU_CONFIGURE=	yes
 USE_GMAKE=	yes
 USE_REINPLACE=	yes
@@ -35,6 +33,8 @@
 		CPPFLAGS="${CPPFLAGS}" \
 		LDFLAGS="${LDFLAGS}"
 
+CONFIGURE_ARGS=	--with-dir-suffix=""
+
 TIMIDITY_CFG=	${LOCALBASE}/share/timidity/timidity.cfg
 
 .include <bsd.port.pre.mk>
@@ -43,20 +43,35 @@
 RUN_DEPENDS=	${TIMIDITY_CFG}:${PORTSDIR}/audio/eawpats
 .endif
 
-.if !exists(${TIMIDITY_CFG}) && !defined(WITHOUT_MIDI)
+.if defined(WITHOUT_X11)
+CONFIGURE_ARGS+=	--without-x11
+.else
+USE_XLIB=	yes
+CONFIGURE_ARGS+=	--with-x11=yes
+.endif
+
 pre-everything::
+.if !exists(${TIMIDITY_CFG}) && !defined(WITHOUT_MIDI)
 	@${ECHO_MSG} ""
 	@${ECHO_MSG} "In order to be able to play MIDI files, audio/eawpats will be installed."
 	@${ECHO_MSG} "Define WITHOUT_MIDI if you do not want to install it."
 	@${ECHO_MSG} ""
 .endif
+.if !defined(WITHOUT_X11)
+	@${ECHO_MSG} ""
+	@${ECHO_MSG} "If you want to compile without X11 support, hit Ctrl-C right now and"
+	@${ECHO_MSG} "define WITHOUT_X11"
+	@${ECHO_MSG} ""
+.endif
 
 post-patch:
+.if defined(WITH_DEBUG)
+	@${REINPLACE_CMD} -e 's|/\*\ \(#define\ .*DEBUG\ 1\)\ \*/|\1|' \
+		${WRKSRC}/config.h.in
+.endif
 	@${REINPLACE_CMD} -e 's|@LIBDIR@|${PREFIX}/lib/ocp|' \
 		${WRKSRC}/Rules.make.in
 	@${REINPLACE_CMD} -e 's|stdint\.h|inttypes\.h|' ${WRKSRC}/types.h
-	@${REINPLACE_CMD} -e 's|ocp-" VERSION|ocp"|' \
-		${WRKSRC}/boot/kickload.c
 	@${REINPLACE_CMD} -e 's|\(-shared\)|-L${LOCALBASE}/lib -L${X11BASE}/lib \1|' \
 		${WRKSRC}/playmp2/Makefile \
 		${WRKSRC}/playogg/Makefile \
@@ -66,7 +81,6 @@
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/ocp ${PREFIX}/bin
-	${CHMOD} u+s ${PREFIX}/bin/ocp
 
 	${MKDIR} ${DATADIR}
 	${INSTALL_DATA} ${WRKSRC}/cp.pak ${DATADIR}
diff -ru ocp-0.1.5/distinfo ocp/distinfo
--- ocp-0.1.5/distinfo	Sun Apr 24 16:11:31 2005
+++ ocp/distinfo	Sun May  1 19:01:42 2005
@@ -1,2 +1,2 @@
-MD5 (ocp-0.1.5.tar.gz) = 96ba21bdecb79f8290613479461f9f1d
-SIZE (ocp-0.1.5.tar.gz) = 612916
+MD5 (ocp-0.1.6.tar.gz) = 0f176bf9b3c3fa04cd95c9854d139fed
+SIZE (ocp-0.1.6.tar.gz) = 627176
Only in ocp-0.1.5: files
Only in ocp-0.1.5: make.out
diff -ru ocp-0.1.5/pkg-plist ocp/pkg-plist
--- ocp-0.1.5/pkg-plist	Sun Apr 24 16:11:31 2005
+++ ocp/pkg-plist	Sun May  1 13:09:17 2005
@@ -30,6 +30,7 @@
 lib/ocp/loadptm.so
 lib/ocp/loads3m.so
 lib/ocp/loadult.so
+lib/ocp/medialib.so
 lib/ocp/mchasm.so
 lib/ocp/mcpbase.so
 lib/ocp/mixclip.so
Only in ocp-0.1.5: work
--- audio-ocp.patch end ---
Comment 1 Jean-Yves Lefort freebsd_committer 2005-05-01 18:37:40 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jylefort

Take.
Comment 2 Jean-Yves Lefort freebsd_committer 2005-05-02 10:36:43 UTC
State Changed
From-To: open->closed

Committed (I had to remove some patches), thanks!