- Remove USE_AUTOTOOLS

- Replace CONFIGURE_ARGS with CPPFLAGS/LIBS
- Use default do-install
This commit is contained in:
Tijl Coosemans 2014-10-05 13:22:06 +00:00
parent 1d246d1bc1
commit 8f0bfdb99c
2 changed files with 14 additions and 14 deletions

View file

@ -14,24 +14,12 @@ COMMENT= Morse code training program
LIB_DEPENDS= libao.so:${PORTSDIR}/audio/libao
GNU_CONFIGURE= yes
USE_AUTOTOOLS= autoconf automake
CONFIGURE_ARGS= --includedir="${LOCALBASE}/include" \
--libdir="${LOCALBASE}/lib"
CPPFLAGS+= -I${LOCALBASE}/include
LIBS+= -L${LOCALBASE}/lib
USES= gmake libtool tar:bzip2
USE_GCC= any
PLIST_FILES= bin/aldo \
man/man1/aldo.1.gz
AUTOTOOLSFILES= aclocal.m4
post-patch:
@${REINPLACE_CMD} -e 's|1.10|%%AUTOMAKE_APIVER%%|g' \
-e 's|2.61|%%AUTOCONF_VERSION%%|g' \
${WRKSRC}/aclocal.m4
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/aldo ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/aldo.1 ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>

View file

@ -0,0 +1,12 @@
--- configure.orig 2007-11-05 09:22:11 UTC
+++ configure
@@ -2220,9 +2220,6 @@ am__tar='${AMTAR} chof - "$$tardir"'; am
-CPPFLAGS="-I${includedir}"
-LDFLAGS="-L${libdir}"
-LIBS="-L${libdir} ${LIBS}"
# Checks for programs.
ac_ext=cpp