diff options
Diffstat (limited to 'cad/qfsm/Makefile')
-rw-r--r-- | cad/qfsm/Makefile | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/cad/qfsm/Makefile b/cad/qfsm/Makefile index 0cc34ee7783a..b5e43f361751 100644 --- a/cad/qfsm/Makefile +++ b/cad/qfsm/Makefile @@ -7,8 +7,7 @@ # PORTNAME= qfsm -PORTVERSION= 0.41 -PORTREVISION= 2 +PORTVERSION= 0.42b CATEGORIES= cad MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -16,18 +15,33 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= ports@FreeBSD.org COMMENT= A graphical tool for designing finite state machines +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/b//} + USE_QT_VER= 3 USE_REINPLACE= yes USE_GMAKE= yes GNU_CONFIGURE= yes CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +post-extract: + @${ECHO_CMD} '#!/bin/sh' > ${WRKSRC}/qfsm.sh + @${ECHO_CMD} 'QFSMDIR=${DATADIR}' >> ${WRKSRC}/qfsm.sh + @${ECHO_CMD} 'export QFSMDIR' >> ${WRKSRC}/qfsm.sh + @${ECHO_CMD} '' >> ${WRKSRC}/qfsm.sh + @${ECHO_CMD} 'exec ${PREFIX}/bin/qfsm.exec "$$@"' >> ${WRKSRC}/qfsm.sh + post-patch: @${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \ 's|^AM_CXXFLAGS =.*$$|AM_CXXFLAGS =|g' + @${REINPLACE_CMD} -e 's|-pedantic||g ; \ + s|-pthread|${PTHREAD_LIBS}|g' ${WRKSRC}/configure do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/src/qfsm ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKSRC}/qfsm.sh ${PREFIX}/bin/qfsm + ${INSTALL_PROGRAM} ${WRKSRC}/src/qfsm ${PREFIX}/bin/qfsm.exec + @${MKDIR} ${DATADIR}/po + ${INSTALL_DATA} ${WRKSRC}/po/*.qm ${DATADIR}/po + ${INSTALL_DATA} ${WRKSRC}/po/*.ts ${DATADIR}/po .if !defined(NOPORTDOCS) @${MKDIR} ${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/examples/*.fsm ${EXAMPLESDIR} |