# New ports collection makefile for: NuppelViodeo # Date created: Mon 10 Feb 2003 22:21:51 CET # Whom: Steve O'Hara-Smith # # $FreeBSD$ # PORTNAME= NuppelVideo PORTVERSION= 0.52.a PORTREVISION= 1 CATEGORIES= multimedia audio MASTER_SITES= http://frost.htu.tuwien.ac.at/~roman/nuppelvideo/ DISTNAME= ${PORTNAME}-${PORTVERSION:C/.(.)$/\1/} MAINTAINER= steve@sohara.org COMMENT= A very low CPU usage VCR/DVR application USE_XLIB= yes USE_GMAKE= yes USE_REINPLACE= yes # find dependencies CFLAGS+= -I${LOCALBASE}/include -I${X11BASE}/include \ -L${LOCALBASE}/lib -L${X11BASE}/lib .include .if ${ARCH} != "i386" && ${ARCH} != "amd64" BROKEN= "Does not compile on !i386 and !amd64" .endif ### ## Auto detected features ### .if ${ARCH} == "i386" . if (defined(MACHINE_CPU) && ${MACHINE_CPU:Mmmx:L} == "mmx") WITH_MMX=yes . endif .endif ### ## Port options ### .ifdef(WITH_OPTIMIZED_CFLAGS) CFLAGS+= -O3 -ffast-math -fomit-frame-pointer -finline-functions \ -funroll-loops -fexpensive-optimizations .endif # .ifdef(WITH_MMX) CFLAGS+= -DMMX .endif pre-everything:: .ifndef(WITH_OPTIMIZED_CFLAGS) @${ECHO_MSG} @${ECHO_MSG} 'You can enable additional compilation optimizations' @${ECHO_MSG} 'by defining WITH_OPTIMIZED_CFLAGS' .endif .if (${ARCH} == "i386" && !defined(WITH_MMX)) @${ECHO_MSG} @${ECHO_MSG} 'You can enable MMX compilation optimizations' @${ECHO_MSG} 'by defining WITH_MMX' .endif post-patch: # C{C,FLAGS} safeness @${REINPLACE_CMD} -E -e \ 's|^CFLAGS.*$$|#|' \ -e 's|^CC.*$$|#|' \ -e 's|^(COPTSRT).*$$|\1=\$$(CFLAGS)|' \ ${WRKSRC}/Makefile .include