From 18c9fa5294d7931e3218eee5130d5272cc04dac3 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Fri, 18 Oct 2013 23:23:56 +0000 Subject: Enable stage Move docs informations into plist Unconditionnaly install docs in stage --- multimedia/libdv/Makefile | 34 ++++++++++++++-------------------- 1 file changed, 14 insertions(+), 20 deletions(-) (limited to 'multimedia/libdv/Makefile') diff --git a/multimedia/libdv/Makefile b/multimedia/libdv/Makefile index e931f224d55b..434cb1c7efd9 100644 --- a/multimedia/libdv/Makefile +++ b/multimedia/libdv/Makefile @@ -23,23 +23,13 @@ CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} USE_LDCONFIG= yes -PORTDOCS= AUTHORS COPYING COPYRIGHT ChangeLog NEWS README \ +DOCS= AUTHORS COPYING COPYRIGHT ChangeLog NEWS README \ README.dvconnect README.encoder TODO OPTIONS_DEFINE= SDL DOCS -.include - -# XXX - work around compiler bug -# Optimizations -O{1,s,2,3} work -# However, lack of -O{1,s,2,3} or -O0 BREAK the build -# Therefore, make sure we have AT LEAST -O and avoid -O0 -CFLAGS:= -O ${CFLAGS:N-O0} - -.if ${PORT_OPTIONS:MSDL} -USE_SDL= sdl -CONFIGURE_ARGS+= --enable-sdl -.endif +SDL_USE= sdl +SDL_CONFIGURE_ENABLE= sdl post-patch: @${REINPLACE_CMD} -e 's|stdint.h|sys/types.h|' \ @@ -53,15 +43,19 @@ post-patch: ${WRKSRC}/encodedv/dvconnect.c # XXX - revise at every port update # protect popt from prefix changes - @${REINPLACE_CMD} -E -e 's|(@REQUIRES_NOPKGCONFIG@)|-L${LOCALBASE}/include \1|' \ + @${REINPLACE_CMD} -E -e 's|(@REQUIRES_NOPKGCONFIG@)|-L${PREFIX}/include \1|' \ ${WRKSRC}/libdv.pc.in post-install: -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${STAGEDIR}${DOCSDIR} -.for doc in ${PORTDOCS} - @${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR} -.endfor -.endif + ${MKDIR} ${STAGEDIR}${DOCSDIR} + cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR} + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libdv.so.4 .include + +# XXX - work around compiler bug +# Optimizations -O{1,s,2,3} work +# However, lack of -O{1,s,2,3} or -O0 BREAK the build +# Therefore, make sure we have AT LEAST -O and avoid -O0 +CFLAGS:= -O ${CFLAGS:N-O0} + -- cgit v1.2.3