- Avoid creating an empty directory. [1]

- Remove USE_KDE4, it's useless.
- Use bsd.port.mk instead of its pre and post variants.
- Bump PORTREVISION.

PR:		166546 [1]
Feature safe:	yes
This commit is contained in:
Alberto Villa 2012-04-07 00:01:37 +00:00
parent cabb58a67f
commit b62f03a19e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=294309
2 changed files with 3 additions and 8 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= phonon
DISTVERSION= ${QT4_VERSION}
PORTREVISION= 1
CATEGORIES?= multimedia
PKGNAMEPREFIX= qt4-
@ -19,7 +20,6 @@ USE_QT_VER= 4
QT_COMPONENTS= qmake_build moc_build corelib dbus gui xml
QT_NONSTANDARD= yes
QT_DIST= yes
USE_KDE4= #dummy, we need to know KDE4_PREFIX
HAS_CONFIGURE= yes
USE_LDCONFIG= ${PREFIX}/lib/qt4
@ -46,8 +46,6 @@ INSTALL_WRKSRC= ${BUILD_WRKSRC}
EXTRA_PATCHES= ${.CURDIR}/../../devel/qt4/files/patch-configure
.include <bsd.port.pre.mk>
.if defined(PACKAGE_BUILDING)
WITH_QT_PHONON= yes
.endif
@ -66,11 +64,10 @@ pre-install:
-e 's|${PREFIX}/lib/qt4/pkgconfig|${PREFIX}/libdata/pkgconfig|g' \
${BUILD_WRKSRC}/Makefile
${REINPLACE_CMD} -E -e 's|-L.[^[:space:]]*qt-x11-opensource.[^[:space:]]*lib||g' \
-E -e 's|(.*location=).*moc|\1${PREFIX}/bin/moc-qt4|g' \
-E -e 's|(.*location=).*moc|\1${PREFIX}/bin/moc-qt4|g' \
${WRKSRC}/lib/pkgconfig/phonon.pc
post-install:
${MKDIR} ${QT_PLUGINDIR}/phonon_backend
${LN} -sf ${PREFIX}/include/qt4/phonon ${PREFIX}/include/qt4/Phonon
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -98,5 +98,3 @@ libdata/pkgconfig/phonon.pc
@dirrmtry lib/qt4
@dirrm include/qt4/phonon
@dirrmtry include/qt4
@exec mkdir -p %%QT_PLUGINDIR_REL%%/phonon_backend
@dirrmtry %%QT_PLUGINDIR_REL%%/phonon_backend