1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

Apply patch from tijl@ to resolve a lot of issues with the port:

- HAS_CONFIGURE -> GNU_CONFIGURE
- USES=libtool.
- DOCS option.
- Remove GCC requirement. (In audio/idjc it is replaced with USES=compiler:nestedfct)

Submitted by:	tilj@
This commit is contained in:
Sean Bruno 2014-04-25 00:42:58 +00:00
parent c5a3654546
commit 208005a4fc
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=352082
2 changed files with 12 additions and 19 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= idjc
PORTVERSION= 0.8.14
PORTREVISION= 1
CATEGORIES= audio python
MASTER_SITES= SF/idjc/idjc/0.8
@ -26,29 +27,22 @@ RUN_DEPENDS= oggenc:${PORTSDIR}/audio/vorbis-tools \
${PYTHON_PKGNAMEPREFIX}mutagen>=0:${PORTSDIR}/audio/py-mutagen \
${PYTHON_PKGNAMEPREFIX}dbus>=0.8:${PORTSDIR}/devel/py-dbus
USES= desktop-file-utils gettext gmake pathfix pkgconfig
CONFIGURE_ENV+= PKG_CONFIG_PATH=${LOCALBASE}/lib/pkgconfig
CONFIGURE_ARGS+= --mandir=${MANPREFIX}/man
USES= compiler:nestedfct desktop-file-utils gettext gmake \
libtool pathfix pkgconfig
LDFLAGS= -L${LOCALBASE}/lib
MAKE_JOBS_UNSAFE= yes
HAS_CONFIGURE= yes
GNU_CONFIGURE= yes
USE_PYTHON= 2.7
USE_PYTHON_PREFIX= yes
USE_GNOME= glib20 pygtk2
USE_GCC= 4.6+
MANLANG= "" fr it
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 900000
BROKEN= audio/shout-idjc IPv6 problem on compile in sock.c
.endif
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
pre-install:
${REINPLACE_CMD} 's|libvorbis.so.0|libvorbis.so|' \
${WRKSRC}/python/format.py
${REINPLACE_CMD} 's|#! /usr/local/bin/python2.72.7|#\!${LOCALBASE}/bin/${PYTHON_VERSION}|' \
${WRKSRC}/idjc
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,5 +1,4 @@
bin/idjc
lib/idjc/idjc.la
lib/idjc/idjc.so
lib/idjc/site-packages/idjc/__init__.py
lib/idjc/site-packages/idjc/__init__.pyc
@ -62,10 +61,10 @@ lib/python2.7/site-packages/idjcmonitor.py
lib/python2.7/site-packages/idjcmonitor.pyc
lib/python2.7/site-packages/idjcmonitor.pyo
share/applications/idjc.desktop
%%PORTDOCS%%%%DOCSDIR%%-%%PORTVERSION%%/AUTHORS.gz
%%PORTDOCS%%%%DOCSDIR%%-%%PORTVERSION%%/ChangeLog.gz
%%PORTDOCS%%%%DOCSDIR%%-%%PORTVERSION%%/NEWS.gz
%%PORTDOCS%%%%DOCSDIR%%-%%PORTVERSION%%/README.gz
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS.gz
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog.gz
%%PORTDOCS%%%%DOCSDIR%%/NEWS.gz
%%PORTDOCS%%%%DOCSDIR%%/README.gz
%%DATADIR%%/add3.png
%%DATADIR%%/advance.png
%%DATADIR%%/classic_cross.png
@ -127,7 +126,7 @@ share/pixmaps/idjc.png
@dirrmtry man/fr
@dirrmtry man
@dirrmtry %%DATADIR%%
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%-%%PORTVERSION%%
%%PORTDOCS%%@dirrmtry %%DOCSDIR%%
@dirrmtry lib/python2.7/site-packages
@dirrmtry lib/python2.7
@dirrmtry lib/idjc/site-packages/idjc/prelims