# $NetBSD: Makefile,v 1.18 1999/10/12 04:43:11 simonb Exp $ # DISTNAME= mpg123-0.59r CATEGORIES= audio MASTER_SITES= http://www.mpg123.de/mpg123/ \ http://www-ti.informatik.uni-tuebingen.de/~hippm/mpg123/ MAINTAINER= packages@netbsd.org HOMEPAGE= http://www.mpg123.de/ # for OBJECT_FMT .include "../../mk/bsd.prefs.mk" .if (${MACHINE_ARCH} == "i386") .if (${OBJECT_FMT} == "ELF") ALL_TARGET= netbsd-i386-elf .else ALL_TARGET= netbsd-i386 .endif .elif (${MACHINE_ARCH} == "arm32") ALL_TARGET= netbsd-arm32 .elif (${MACHINE_ARCH} == "m68k") ALL_TARGET= netbsd-m68k .else ALL_TARGET= ${LOWER_OPSYS} .endif .if ${OPSYS} == "SunOS" MAKE_ENV+= CPPFLAGS="" .endif MAKE_FLAGS+= PREFIX="${PREFIX}" post-patch: ${CP} ${FILESDIR}/decode_i586_.s ${WRKSRC}/ cd ${WRKSRC} ; ${MV} decode_i586.s decode_i586.s.orig ;\ ${SED} \ -e 's@^/@#/@g' \ decode_i586.s .include "../../mk/bsd.pkg.mk"