aboutsummaryrefslogtreecommitdiffstats
path: root/editors
diff options
context:
space:
mode:
authormakc <makc@FreeBSD.org>2013-10-13 21:03:03 +0800
committermakc <makc@FreeBSD.org>2013-10-13 21:03:03 +0800
commita24b5a9439576d52b7a1e94d6c4dd3f0e5d8c13e (patch)
tree9d348bd41c93dc07e16d63761a277862fca2beec /editors
parent59c0a46aa2540ee31e961d5f970ecb9f7804f01e (diff)
downloadfreebsd-ports-gnome-a24b5a9439576d52b7a1e94d6c4dd3f0e5d8c13e.tar.gz
freebsd-ports-gnome-a24b5a9439576d52b7a1e94d6c4dd3f0e5d8c13e.tar.zst
freebsd-ports-gnome-a24b5a9439576d52b7a1e94d6c4dd3f0e5d8c13e.zip
- Convert unmaintained ports to USES=qmake
- Add stage support - Convert LIB_DEPENDS to new syntax - Minor changes/fixes
Diffstat (limited to 'editors')
-rw-r--r--editors/lfhex/Makefile20
-rw-r--r--editors/textroom/Makefile10
2 files changed, 11 insertions, 19 deletions
diff --git a/editors/lfhex/Makefile b/editors/lfhex/Makefile
index 32fb05d90223..475bee4bd422 100644
--- a/editors/lfhex/Makefile
+++ b/editors/lfhex/Makefile
@@ -13,7 +13,7 @@ COMMENT= Large file hex editor
LICENSE= GPLv2
USE_QT4= corelib gui moc_build qmake_build rcc_build
-USES= bison
+USES= bison qmake
WRKSRC= ${WRKDIR}/${DISTNAME}/src
@@ -21,21 +21,19 @@ PORTDOCS= README
PLIST_FILES= bin/lfhex
LICENSE_FILES= ${WRKSRC}/../COPYING
-NO_STAGE= yes
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|^DEFINES|# DEFINES|g' ${WRKSRC}/lfhex.pro
@${REINPLACE_CMD} -e 's| abs| llabs|g' ${WRKSRC}/reader.cpp
-do-configure:
- @cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${QMAKE} ${QMAKEFLAGS}
-
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/lfhex ${PREFIX}/bin
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/../README ${DOCSDIR}
+ ${INSTALL_PROGRAM} ${WRKSRC}/lfhex ${STAGEDIR}${PREFIX}/bin
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/../README ${STAGEDIR}${DOCSDIR}
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/editors/textroom/Makefile b/editors/textroom/Makefile
index 3116864d6876..612f1ec0fa2f 100644
--- a/editors/textroom/Makefile
+++ b/editors/textroom/Makefile
@@ -14,22 +14,16 @@ LIB_DEPENDS= libhunspell-1.3.so:${PORTSDIR}/textproc/hunspell \
libxml++-2.6.so:${PORTSDIR}/textproc/libxml++26 \
libcurl.so:${PORTSDIR}/ftp/curl
-USES= shared-mime-info
+USES= qmake shared-mime-info
USE_SDL= mixer
USE_QT4= moc_build qmake_build rcc_build uic_build corelib gui xml \
svg opengl qt3support
-QMAKE_ARGS= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE}
-HAS_CONFIGURE= yes
+QMAKE_ARGS= LOCALBASE=${LOCALBASE}
-NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's|/usr/share|${PREFIX}/share|' \
${WRKSRC}/application/src/textroom.cpp \
${WRKSRC}/application/src/getaword.cpp \
${WRKSRC}/application/src/optionsdialog.cpp
-do-configure:
- @cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
- ${QMAKE} ${QMAKEFLAGS} ${QMAKE_ARGS} textroom.pro
-
.include <bsd.port.mk>