freebsd-ports/graphics/libmovtar/Makefile
Mario Sergio Fujikawa Ferreira bb021c281a Update to 0.1.3
2002-05-20 23:30:54 +00:00

39 lines
1008 B
Makefile

# New ports collection makefile for: libmovtar
# Date created: Mon Oct 15 23:35:04 BRST 2001
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= libmovtar
PORTVERSION= 0.1.3
CATEGORIES= graphics
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mjpeg
MAINTAINER= lioux@FreeBSD.org
LIB_DEPENDS= SDL-1.1.4:${PORTSDIR}/devel/sdl12 \
jpeg.9:${PORTSDIR}/graphics/jpeg
USE_GTK= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-m4data-prefix=${PREFIX}/share
CONFIGURE_ENV= SDL_CONFIG="${SDL_CONFIG}" \
LOCALBASE="${LOCALBASE}"
MAKE_ENV= PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS=${PTHREAD_LIBS}
SDL_CONFIG?= ${LOCALBASE}/bin/sdl11-config
post-patch:
@${PERL} -pi -e 's|SDL/|SDL11/|' \
${WRKSRC}/rtjpeg/rtjshow.c \
${WRKSRC}/movtar_play.c
@${PERL} -pi -e 's|^(LIBS="-ljpeg )|\1 -L${LOCALBASE}/lib|; \
s|(LIBS -ljpeg)"|\1 -L${LOCALBASE}/lib"|' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
.include <bsd.port.mk>