openbsd-ports/graphics/mpeg-lib/Makefile

41 lines
968 B
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.8 1999/04/06 03:49:21 marc Exp $
1997-12-19 22:17:26 -05:00
#
DISTNAME= mpeg_lib-1.2.1
CATEGORIES= graphics
NEED_VERSION= 1.64
MAINTAINER= marc@OpenBSD.ORG
1997-12-19 22:17:26 -05:00
MASTER_SITES= ftp://ftp.mni.mcgill.ca/pub/mpeg/
HAS_CONFIGURE= yes
1999-04-05 21:11:39 -04:00
CONFIGURE_ARGS= --prefix=${PREFIX} ${CONFIGURE_SHARED}
1997-12-19 22:17:26 -05:00
WRKSRC= ${WRKDIR}/mpeg_lib
# post-patch must be defined before bsd.port.mk is included so it will
# be called. However, we need to have the body of the target after
# bsd.port.mk is included so NO_SHARED_LIBS is defined.
# Define the target twice, using ::
#
post-patch::
1997-12-19 22:17:26 -05:00
pre-install:
@${MKDIR} -p ${PREFIX}/bin ${PREFIX}/lib ${PREFIX}/include
post-install:
${LDCONFIG} -m ${PREFIX}/lib
.include <bsd.port.mk>
# The patches assumed shared libs would be build. If building
# on a host that does not support shared libs, e.g. the alpha,
# apply one more patch.
#
post-patch::
.if defined(NO_SHARED_LIBS)
@(cd ${DISTDIR}; ${PATCH} ${PATCH_DIST_ARGS} < ${FILESDIR}/patch)
.endif