openbsd-ports/audio/mp3encode/Makefile

43 lines
1.4 KiB
Makefile
Raw Normal View History

2004-11-21 12:51:44 -05:00
# $OpenBSD: Makefile,v 1.19 2004/11/21 17:51:45 espie Exp $
COMMENT= "MPEG layer I, II and III audio file encoder"
DISTNAME= dist10
PKGNAME= mp3encode-1.10p1
CATEGORIES= audio
MASTER_SITES= ftp://ftp.sunet.se/pub/multimedia/Berkeley/mpeg2/conformance-bitstreams/audio/mpeg2/software/technical_report/
PERMIT_PACKAGE_CDROM= MP3 patent, http://mp3licensing.com/royalty/swenc.html
2000-04-08 11:00:59 -04:00
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= MP3 patent, http://mp3licensing.com/royalty/swenc.html
2000-04-08 11:00:59 -04:00
PERMIT_DISTFILES_FTP= Yes
2004-11-21 12:51:44 -05:00
WANTLIB= c m
2000-02-12 01:29:49 -05:00
2000-04-08 11:00:59 -04:00
USE_GMAKE= Yes
CONFIGURE_STYLE=simple
1999-09-06 14:13:21 -04:00
2000-02-10 19:37:15 -05:00
WRKDIST= ${WRKDIR}/${DISTNAME}/lsf/encoder
2002-10-24 18:20:03 -04:00
NO_REGRESS= Yes
# Directories and extra files
TABLE_LIB= ${PREFIX}/lib/mp3encode
TABLE_LIB_SED= ${TABLE_LIB:S/\//\\\//g}
TABLE_FILES= 1cb0 1cb1 1cb2 1cb4 1cb5 1cb6 1th0 1th1 1th2 1th4 1th5 1th6 \
2cb0 2cb1 2cb2 2cb4 2cb5 2cb6 2th0 2th1 2th2 2th4 2th5 2th6 \
absthr_0 absthr_1 absthr_2 alloc_0 alloc_1 alloc_2 alloc_3 \
alloc_4 dewindow enwindow huffcode huffdec psy_data
2000-04-08 11:00:59 -04:00
# fix rights (or fix wrongs ?)
post-extract:
@cd ${WRKDIST} && chmod -R a+rX,u+w .
2003-04-20 18:40:13 -04:00
post-configure:
@sed -e s,ZAP,${TABLE_LIB_SED}, ${WRKSRC}/common.h > ${WRKSRC}/common.h.sed
@mv ${WRKSRC}/common.h.sed ${WRKSRC}/common.h
do-install:
${INSTALL_DATA_DIR} ${TABLE_LIB}
${INSTALL_PROGRAM} ${WRKSRC}/encode ${PREFIX}/bin/mp3encode
cd ${WRKSRC}/tables; ${INSTALL_DATA} ${TABLE_FILES} ${TABLE_LIB}
.include <bsd.port.mk>