# New ports collection makefile for: gpac-libm4systems # Date created: 2005-05-04 # Whom: Michael Johnson # # $FreeBSD$ # PORTNAME= gpac PORTVERSION= 0.4.5 PORTREVISION= 6 PORTEPOCH= 1 CATEGORIES= multimedia MASTER_SITES= SF/${PORTNAME}/GPAC/GPAC%20${PORTVERSION} PKGNAMESUFFIX= -libgpac MAINTAINER= multimedia@FreeBSD.org COMMENT= Gpac MPEG-4 Systems library and headers WRKSRC= ${WRKDIR}/gpac ALL_TARGET= lib USE_GMAKE= yes HAS_CONFIGURE= yes USE_LDCONFIG= yes BUILD_WRKSRC= ${WRKSRC}/src INSTALL_WRKSRC= ${WRKSRC}/bin/gcc LIBVER= 1 OPTIONS_DEFINE= IPV6 JPEG OPENGL SSL PNG XVIDEO OPTIONS_DEFAULT= IPV6 JPEG SSL PNG CFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib CONFIGURE_ARGS= --cc="${CC}" --X11-path="${LOCALBASE}" \ --extra-cflags="${CFLAGS}" --extra-ldflags="${LDFLAGS}" \ --enable-pic \ --disable-wx \ --use-js=no --use-a52=no --use-faad=no --use-ffmpeg=no \ --use-ft=no --use-mad=no --use-ogg=no \ --use-openjpeg=no --use-theora=no --usr-vorbis=no CONFIGURE_ENV+= LIBVER="${LIBVER}" PTHREAD_LIBS="${PTHREAD_LIBS}" .include .if ${PORT_OPTIONS:MSSL} USE_OPENSSL= yes .else CONFIGURE_ARGS+= --disable-ssl .endif .if ${PORT_OPTIONS:MOPENGL} USE_GL= gl glu .else CONFIGURE_ARGS+= --disable-opengl .endif .if ${PORT_OPTIONS:MXVIDEO} LIB_DEPENDS+= Xv.1:${PORTSDIR}/x11/libXv .else CONFIGURE_ARGS+= --disable-x11-xv --disable-x11-shm .endif .include .if empty(PORT_OPTIONS:MIPV6) CONFIGURE_ARGS+= --disable-ipv6 .endif .if ${PORT_OPTIONS:MJPEG} LIB_DEPENDS+= jpeg.11:${PORTSDIR}/graphics/jpeg CONFIGURE_ARGS+= --use-jpeg=local .else CONFIGURE_ARGS+= --use-jpeg=no .endif .if ${PORT_OPTIONS:MPNG} LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png CONFIGURE_ARGS+= --use-png=local CFLAGS+= -I${LOCALBASE}/include/libpng15 .else CONFIGURE_ARGS+= --use-png=no .endif post-patch: ${CHMOD} +x ${WRKSRC}/configure do-install: ${MKDIR} ${PREFIX}/include/gpac cd ${WRKSRC}/include/gpac && ${FIND} . | \ ${CPIO} -vpdm -L -R ${LIBOWN}:${LIBGRP} ${PREFIX}/include/gpac ${INSTALL_DATA} ${INSTALL_WRKSRC}/libgpac.so.${LIBVER} ${PREFIX}/lib ${LN} -sf libgpac.so.${LIBVER} ${PREFIX}/lib/libgpac.so ${INSTALL_DATA} ${INSTALL_WRKSRC}/libgpac_static.a ${PREFIX}/lib .include