1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

qqwing doesn't honor CC/CXX/CPP [1], resolve this by doing a major

overhaul. Which also simplies the port a bit, and gets rid of using
scripts the port supplies.

 * Even if the old port defined CC/CXX/CPP, it was not actualy used.
   Due to the reason in the next point.
 * Instead of using the port supplied script, which call ./configure
   and make install targets without any arguments and so. Copy the
   "special" voodoo into pre-configure and pre-build targets. Define
   GNU_CONFIGURE and use standard do-configure, do-build and
   do-install, since this ports uses autotools when it matters.
 * Drag USE_GITHUB macros out the macro mess. Use autoreconf USES
   instead of having manual BUILD_DEPENDS lines.
 * No more post-patch to fix the port supplied scripts, and no
   do-install since we leave that to autotools.
 * Set PATHFIX_MAKEFILEIN to patch the Makefile.am file instead of
   the Makefile.in file due to us running autoreconf which
   overwrites the .in file (if it existed at all).
 * Wrap lines
 * USE_GNOME=glib introspection:build are not needed, so remove them.

PR:		202901 [1]
Reported by:	Kenneth Salerno <kennethsalerno@yahoo.com> [1]
This commit is contained in:
Koop Mast 2015-09-06 13:03:07 +00:00
parent aeb5f2cef4
commit 3798af9a89
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=396213

View File

@ -3,43 +3,37 @@
PORTNAME= qqwing
PORTVERSION= 1.3.3
DISTVERSIONPREFIX= v
PORTREVISION= 1
CATEGORIES= games gnome
DIST_SUBDIR= gnome3
MAINTAINER= gnome@FreeBSD.org
COMMENT= Sudoku generating and solving software
BUILD_DEPENDS= automake>=0:${PORTSDIR}/devel/automake \
autoconf>=0:${PORTSDIR}/devel/autoconf \
libtool:${PORTSDIR}/devel/libtool
USES= gmake libtool pathfix pkgconfig
USE_GNOME= glib20 introspection:build
USE_GITHUB= yes
GH_ACCOUNT= stephenostermiller
USES= autoreconf:build gmake libtool pathfix pkgconfig
USE_LDCONFIG= yes
CONFIGURE_ENV+= CC=cc CXX=c++ CPP=cpp
GNU_CONFIGURE= yes
PATHFIX_MAKEFILEIN= Makefile.am
INSTALL_TARGET= install-strip
post-patch:
@${REINPLACE_CMD} -e 's|exit 1|exit 0|g' \
${WRKSRC}/build/not_root_check.sh
CONFIGURE_WRKSRC= ${WRKSRC}/target/automake
BUILD_WRKSRC= ${WRKSRC}/target/automake
INSTALL_WRKSRC= ${WRKSRC}/target/automake
@${REINPLACE_CMD} -e 's|touch --date 1980-01-01|touch |g' \
${WRKSRC}/build/*.sh
pre-configure:
@${MKDIR} ${WRKSRC}/target/automake
@cd ${WRKSRC} && ${CP} build/configure.ac build/Makefile.am \
build/qqwing.pc.in doc/README doc/AUTHORS doc/COPYING \
target/automake
@cd ${WRKSRC} && ${CP} doc/qqwing.man target/automake/qqwing.1
@cd ${WRKSRC}/target/automake && ${TOUCH} config.h.in
@cd ${WRKSRC}/target/automake && autoreconf --force --install
@${REINPLACE_CMD} -e 's|sudo||g' \
${WRKSRC}/build/cpp_install.sh
do-build:
@(cd ${WRKSRC} && ${SH} build/cpp_configure.sh && ${SH} build/cpp_compile.sh && ${SH} build/cpp_dist.sh)
do-install:
@(cd ${WRKSRC}/target/automake/.libs && ${CP} libqqwing.so.2 ${STAGEDIR}${PREFIX}/lib)
@(${LN} -fs ${PREFIX}/lib/libqqwing.so.2 ${STAGEDIR}${PREFIX}/lib/libqqwing.so.2.0.3)
@(${LN} -fs ${PREFIX}/lib/libqqwing.so.2 ${STAGEDIR}${PREFIX}/lib/libqqwing.so)
@(cd ${WRKSRC}/target/automake/ && ${CP} qqwing.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig)
@(cd ${WRKSRC}/target/automake/ && ${CP} qqwing.hpp ${STAGEDIR}${PREFIX}/include)
@(cd ${WRKSRC}/target/automake/ && ${CP} qqwing ${STAGEDIR}${PREFIX}/bin)
@(cd ${WRKSRC}/target/automake/ && ${GZIP_CMD} qqwing.1 && ${CP} qqwing.1.gz ${STAGEDIR}${PREFIX}/man/man1/)
pre-build:
@cd ${WRKSRC} && ${CP} src/cpp/*.cpp target/automake
@cd ${WRKSRC} && ${CP} src/cpp/*.hpp target/automake
.include <bsd.port.mk>