7832856cbe
they're built on all archs not just DEBUGINFO_ARCHS. ok aja@
68 lines
1.7 KiB
Makefile
68 lines
1.7 KiB
Makefile
# $OpenBSD: Makefile,v 1.72 2020/10/31 12:09:04 sthen Exp $
|
|
|
|
COMMENT= digital camera library
|
|
|
|
VERSION= 2.5.26
|
|
DISTNAME= libgphoto2-${VERSION}
|
|
PKGNAME= libgphoto-${VERSION}
|
|
|
|
GPHOTO2_PORT_API= 0.12.0
|
|
SUBST_VARS= GPHOTO2_PORT_API VERSION
|
|
|
|
CATEGORIES= graphics devel
|
|
|
|
SHARED_LIBS += gphoto2_port 8.1 # 12.0
|
|
SHARED_LIBS += gphoto2 4.2 # 7.0
|
|
|
|
HOMEPAGE= http://www.gphoto.org/
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
# LGPLv2.1
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} c crypto curl exif expat fontconfig
|
|
WANTLIB += freetype gd iconv intl jpeg ltdl lzma m nghttp2 png
|
|
WANTLIB += ssl tiff usb usb-1.0 webp xml2 z zstd
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gphoto/}
|
|
|
|
LIB_DEPENDS= graphics/gd \
|
|
graphics/libexif \
|
|
devel/libusb-compat \
|
|
devel/libtool,-ltdl \
|
|
net/curl \
|
|
textproc/libxml
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
|
|
ac_cv_path_DOXYGEN=false
|
|
|
|
CONFIGURE_ARGS= --enable-static \
|
|
--without-hal \
|
|
--without-bonjour
|
|
|
|
# XXX libusb1 is broken
|
|
CONFIGURE_ARGS += --with-libusb-1.0=no
|
|
|
|
DEBUG_PACKAGES= ${BUILD_PACKAGES}
|
|
|
|
.include <bsd.port.arch.mk>
|
|
.if !${PROPERTIES:Mclang}
|
|
CFLAGS += -std=gnu99
|
|
.endif
|
|
|
|
# /usr/local/lib/libiconv.a(localcharset.o)(.text+0x0): In function `locale_charset':
|
|
# multiple definition of `locale_charset'
|
|
MAKE_FLAGS= INTLLIBS='$$(LTLIBINTL)'
|
|
|
|
post-install:
|
|
rm ${PREFIX}/lib/libgphoto2/${VERSION}/*.{a,la}
|
|
rm ${PREFIX}/lib/libgphoto2_port/${GPHOTO2_PORT_API}/*.{a,la}
|
|
rm -rf ${PREFIX}/lib/udev
|
|
mv ${PREFIX}/share/doc/libgphoto2_port \
|
|
${PREFIX}/share/doc/libgphoto2
|
|
|
|
.include <bsd.port.mk>
|