1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00
freebsd-ports/multimedia/smpeg/Makefile
Mark Linimon 392d0620a5 Base gcc doesn't support -Wno-error-narrowing flag. Add it only when
the compiler used is Clang.

PR:		233407
Submitted by:	Piotr Kubaj
Approved by:	portmgr (tier-2 blanket)
2018-11-27 16:14:38 +00:00

37 lines
935 B
Makefile

# Created by: Chris Piazza <cpiazza@FreeBSD.org>
# $FreeBSD$
PORTNAME= smpeg
PORTVERSION= 0.4.4
PORTREVISION= 15
CATEGORIES= multimedia
MASTER_SITES= ftp://sunsite.auc.dk/pub/os/linux/loki/open-source/smpeg/ \
GENTOO
MAINTAINER= acm@FreeBSD.org
COMMENT= Free MPEG1 video player library with sound support
LICENSE= LGPL20
LICENSE_FILE= ${WRKSRC}/COPYING
USES= compiler gmake libtool:build
USE_SDL= sdl
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= GLBASE="${LOCALBASE}" \
CC="${CXX}" REAL_CC="${CC}" \
SDL_CONFIG="${SDL_CONFIG}"
#If you want to try the opengl/gtk player (which doesn't seem to work)
#comment out the following line.
CONFIGURE_ARGS= --disable-opengl-player \
--disable-gtk-player \
--enable-mmx
CFLAGS+= ${CFLAGS_${CHOSEN_COMPILER_TYPE}}
CFLAGS_clang= -Wno-error-narrowing
LDFLAGS_i386= -Wl,-znotext
MAKE_ARGS= LIBTOOL=${LOCALBASE}/bin/libtool
INSTALL_TARGET= install-strip
.include <bsd.port.mk>