Lines 8-18
Link Here
|
8 |
# |
8 |
# |
9 |
|
9 |
|
10 |
PORTNAME= lplayer |
10 |
PORTNAME= lplayer |
11 |
PORTVERSION= 0.98.2 |
11 |
PORTVERSION= 0.99.0 |
12 |
CATEGORIES= audio |
12 |
CATEGORIES= audio |
13 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
13 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
14 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
14 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
15 |
DISTNAME= ${PORTNAME}_${PORTVERSION}_src |
15 |
DISTNAME= ${PORTNAME}-${PORTVERSION}_src |
16 |
EXTRACT_SUFX= .tgz |
16 |
EXTRACT_SUFX= .tgz |
17 |
|
17 |
|
18 |
MAINTAINER= ports@FreeBSD.org |
18 |
MAINTAINER= ports@FreeBSD.org |
Lines 20-62
Link Here
|
20 |
|
20 |
|
21 |
BUILD_DEPENDS= xmms-config:${PORTSDIR}/multimedia/xmms |
21 |
BUILD_DEPENDS= xmms-config:${PORTSDIR}/multimedia/xmms |
22 |
|
22 |
|
23 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src |
23 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
24 |
|
24 |
|
25 |
USE_QT_VER= 3 |
25 |
USE_QT_VER= 3 |
26 |
USE_REINPLACE= yes |
26 |
USE_REINPLACE= yes |
27 |
USE_GMAKE= yes |
27 |
USE_GMAKE= yes |
28 |
HAS_CONFIGURE= yes |
28 |
USE_LIBTOOL= yes |
29 |
MAKE_ENV+= QTDIR=${QT_PREFIX} |
29 |
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} |
30 |
CONFIGURE_ENV= ${MAKE_ENV} |
30 |
CONFIGURE_ENV= QTDIR="${QT_PREFIX}" |
31 |
|
31 |
CONFIGURE_ARGS= --with-xmms-prefix=${X11BASE} --with-xinerama |
32 |
do-configure: |
32 |
MAKE_ARGS= ACLOCAL="${TRUE}" AUTOCONF="${TRUE}" AUTOMAKE="${TRUE}" \ |
33 |
cd ${WRKSRC}; \ |
33 |
AUTOHEADER="${TRUE}" |
34 |
XMMSLIBS=$$(xmms-config --libs); \ |
34 |
|
35 |
XMMSINCS=$$(xmms-config --cflags | sed 's|-I||g'); \ |
35 |
post-patch: |
36 |
${REINPLACE_CMD} -e "s|@X11BASE@|${X11BASE}|g" \ |
36 |
@${REINPLACE_CMD} -e 's|-pedantic||g ; \ |
37 |
-e "s|@LOCALBASE@|${LOCALBASE}|g" \ |
37 |
s|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure |
38 |
-e "s|@XMMSLIBS@|$$XMMSLIBS|" \ |
|
|
39 |
-e "s|@XMMSINCS@|$$XMMSINCS|" lp.pro; \ |
40 |
${SETENV} ${CONFIGURE_ENV} qmake -makefile -o Makefile -unix lp.pro |
41 |
|
42 |
.include <bsd.port.pre.mk> |
43 |
|
44 |
DOCS_SUBDIR= ${DOCSDIR:S|^${PREFIX}/||} |
45 |
EXAMPLES_SUBDIR= ${EXAMPLESDIR:S|^${PREFIX}/||} |
46 |
|
47 |
BINDIR= ${PREFIX}/bin |
48 |
BIN_SUBDIR= ${BINDIR:S|^${PREFIX}/||} |
49 |
LIBDIR= ${PREFIX}/lib |
50 |
LIB_SUBDIR= ${LIBDIR:S|^${PREFIX}/||} |
51 |
PKGLIBDIR= ${LIBDIR}/${PORTNAME} |
52 |
PKGLIB_SUBDIR= ${PKGLIBDIR:S|^${PREFIX}/||} |
53 |
|
54 |
do-install: |
55 |
${MKDIR} ${BINDIR} ${PKGLIBDIR} |
56 |
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME}-bin ${PKGLIBDIR} |
57 |
${INSTALL_DATA} ${WRKSRC}/../gnu/lplayerdir/*.png ${PKGLIBDIR} |
58 |
${INSTALL_SCRIPT} ${FILESDIR}/lplayer ${BINDIR} |
59 |
|
38 |
|
60 |
.include <bsd.port.post.mk> |
39 |
.include <bsd.port.mk> |
61 |
|
|
|
62 |
#EOF |