diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-10-18 23:23:56 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2013-10-18 23:23:56 +0000 |
commit | 18c9fa5294d7931e3218eee5130d5272cc04dac3 (patch) | |
tree | 9db53be3c93408e5ba7d871a898e69fd3ceb507a /multimedia/libdv/Makefile | |
parent | 57efaddf7774d451f43e8e8198f2cc3b110352bf (diff) |
Enable stage
Move docs informations into plist
Unconditionnaly install docs in stage
Notes
Notes:
svn path=/head/; revision=330790
Diffstat (limited to 'multimedia/libdv/Makefile')
-rw-r--r-- | multimedia/libdv/Makefile | 34 |
1 files changed, 14 insertions, 20 deletions
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 <bsd.port.options.mk> - -# 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 <bsd.port.mk> + +# 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} + |