diff options
author | will <will@FreeBSD.org> | 2001-04-15 13:49:39 +0800 |
---|---|---|
committer | will <will@FreeBSD.org> | 2001-04-15 13:49:39 +0800 |
commit | 8b843e966543862c872e8eee7be2e1e69ee876a7 (patch) | |
tree | 7f888fb4986bc778ba0910a5aa29f79848b866e8 /games/kpuzzle/Makefile | |
parent | 5acaf65191561ad90a05014bb72d6b59bc790c37 (diff) | |
download | freebsd-ports-gnome-8b843e966543862c872e8eee7be2e1e69ee876a7.tar.gz freebsd-ports-gnome-8b843e966543862c872e8eee7be2e1e69ee876a7.tar.zst freebsd-ports-gnome-8b843e966543862c872e8eee7be2e1e69ee876a7.zip |
Replace this completely broken port with something that works.
Also update to kpuzzle 0.2. Note that the hackery involved here to make
NOPORTDOCS work can be revisited later, since there are much more elegant
ways to do it (like changing the default install target's dependencies,
and using INSTALL_TARGET in here to add docs to the install).
BTW, I don't know how this port ever worked in the first place -- KDE 1.x
and kde-qt-addon (for KDE 1.9x, which is pre-2.x) are totally unrelated.
Diffstat (limited to 'games/kpuzzle/Makefile')
-rw-r--r-- | games/kpuzzle/Makefile | 78 |
1 files changed, 3 insertions, 75 deletions
diff --git a/games/kpuzzle/Makefile b/games/kpuzzle/Makefile index 3176cc6f1392..0c4ec90ae6e1 100644 --- a/games/kpuzzle/Makefile +++ b/games/kpuzzle/Makefile @@ -6,7 +6,7 @@ # PORTNAME= kpuzzle -PORTVERSION= 0.1 +PORTVERSION= 0.2 CATEGORIES= games MASTER_SITES= ${MASTER_SITE_KDE} MASTER_SITE_SUBDIR= unstable/apps/games @@ -14,82 +14,10 @@ MASTER_SITE_SUBDIR= unstable/apps/games MAINTAINER= trevor@FreeBSD.org BUILD_DEPENDS= gettext:${PORTSDIR}/devel/gettext - -LIB_DEPENDS= kde-qt-addon.4:${PORTSDIR}/x11-toolkits/kde-qt-addon \ - kdecore.3:${PORTSDIR}/x11/kdelibs11 -BROKEN= "kde-qt-addon was removed" - -GNU_AUTOCONF= yes -USE_AUTOMAKE= yes +USE_KDELIBS_VER=2 +GNU_CONFIGURE= yes USE_BZIP2= yes -#USE_X_PREFIX= yes USE_GMAKE= yes -CONFIGURE_ARGS= --with-extra-includes="${LOCALBASE}/include/" \ - --with-qt-includes="${QTDIR}/include/X11/qt/" \ - --enable-debug -CONFIGURE_ENV+= CPPFLAGS="-I${X11BASE}/include -I${X11BASE}/include/X11/qt -I${PREFIX}/include" \ - KDEDIR=${LOCALBASE} \ - LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \ - MOC=${X11BASE}/bin/moc \ - QTDIR=${X11BASE} -MAKE_ENV+= CPPFLAGS="-I${X11BASE}/include -I${X11BASE}/include/X11/qt -I${PREFIX}/include" \ - KDEDIR=${LOCALBASE} \ - LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \ - MOC=${X11BASE}/bin/moc \ - QTDIR=${X11BASE} -PLIST= ${WRKDIR}/pkg-plist - -do-patch: - ${PERL} -pi -e "s:/default/:/en/:g" ${WRKSRC}/kpuzzle/doc/Makefile.am - ${PERL} -pi -e "s:lkdecore -lqt:lkdecore -lkde-qt-addon -lqt:g" ${WRKSRC}/kpuzzle/doc/Makefile.am - -do-configure: - cd ${WRKSRC} && ${SETENV} KDEDIR=${LOCALBASE} PREFIX=${X11BASE} ./configure \ - --with-extra-includes=${LOCALBASE}/include \ - --with-qt-includes=${X11BASE}/include/X11/qt - -post-configure: - ${PERL} -pi -e "s:MOC = /usr:MOC = ${X11BASE}:g" `find ${WRKSRC}/kpuzzle -name Makefile` - -pre-install: - ${RM} -f ${PLIST} - cd ${WRKSRC}/kpuzzle/pics/; \ - for i in *.xpm *.bmp; do \ - ${ECHO} share/apps/kpuzzle/data/$${i} >> ${PLIST}; \ - done - cd ${WRKSRC}/kpuzzle/levels/; \ - for i in *.bmp; do \ - ${ECHO} share/apps/kpuzzle/levels/$${i} >> ${PLIST}; \ - done - ${ECHO} share/applnk/Games/kpuzzle.kdelnk >> ${PLIST} - ${ECHO} share/icons/kpuzzle.xpm >> ${PLIST} - ${ECHO} share/icons/mini/mini-kpuzzle.xpm >> ${PLIST} -.if !defined(NOPORTDOCS) - cd ${WRKSRC}/kpuzzle/doc/; \ - for i in *html *gif; do \ - ${ECHO} share/doc/HTML/en/kpuzzle/$${i} >> ${PLIST}; \ - done - ${ECHO} @dirrm /share/doc/HTML/en/kpuzzle >> ${PLIST} -.endif -.for i in share/apps/kpuzzle/data share/applnk/Games share/apps/kpuzzle/levels share/apps/kpuzzle - ${ECHO} @dirrm ${i} >> ${PLIST} -.endfor - -do-install: -.if !defined(NOPORTDOCS) - ${MKDIR} ${PREFIX}/share/doc/HTML/en/kpuzzle - ${INSTALL_DATA} ${WRKSRC}/kpuzzle/doc/*.html ${PREFIX}/share/doc/HTML/en/kpuzzle - ${INSTALL_DATA} ${WRKSRC}/kpuzzle/doc/scr_1.gif ${PREFIX}/share/doc/HTML/en/kpuzzle -.endif -.for i in share/applnk/Games share/apps/kpuzzle/data share/apps/kpuzzle/levels - ${MKDIR} ${PREFIX}/${i} -.endfor - ${INSTALL_PROGRAM} ${WRKSRC}/kpuzzle/kpuzzle ${PREFIX}/bin - ${INSTALL_DATA} ${WRKSRC}/kpuzzle/pics/*.xpm ${WRKSRC}/kpuzzle/pics/*.bmp ${PREFIX}/share/apps/kpuzzle/data/ - ${INSTALL_DATA} ${WRKSRC}/kpuzzle/levels/*.bmp ${PREFIX}/share/apps/kpuzzle/levels/ - ${INSTALL_DATA} ${WRKSRC}/kpuzzle/kpuzzle.kdelnk ${PREFIX}/share/applnk/Games - ${INSTALL_DATA} ${WRKSRC}/kpuzzle/kpuzzle.xpm ${PREFIX}/share/icons - ${INSTALL_DATA} ${WRKSRC}/kpuzzle/mini-kpuzzle.xpm ${PREFIX}/share/icons/mini .include <bsd.port.mk> |