avoid triggering autotools cascade after patching configure.ac

This commit is contained in:
naddy 2017-09-29 20:53:48 +00:00
parent 7443d39012
commit 4b8df1ac82

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.53 2017/09/29 09:07:29 sthen Exp $
# $OpenBSD: Makefile,v 1.54 2017/09/29 20:53:48 naddy Exp $
COMMENT= digital camera library
@ -34,10 +34,9 @@ LIB_DEPENDS= graphics/gd \
devel/libtool,-ltdl \
textproc/libxml
CONFIGURE_STYLE= autoconf automake
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.69
AUTOMAKE_VERSION= 1.15
BUILD_DEPENDS= devel/libtool
AUTOCONF_DIR= ${WRKSRC} ${WRKSRC}/libgphoto2_port
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
ac_cv_path_DOXYGEN=false
@ -53,9 +52,11 @@ CONFIGURE_ARGS += --with-libusb-1.0=no
# multiple definition of `locale_charset'
MAKE_FLAGS= INTLLIBS='$$(LTLIBINTL)'
# avoid triggering autotools cascade after patching configure.ac
pre-configure:
@cd ${WRKSRC}/libgphoto2_port ; env PATH=${PORTPATH} \
AUTOCONF_VERSION=${AUTOCONF_VERSION} autoconf
@for d in ${AUTOCONF_DIR}; do \
touch -r $$d/aclocal.m4 $$d/configure.ac; \
done
post-install:
rm ${PREFIX}/lib/libgphoto2/${VERSION}/*.{a,la}