Lines 1-26
Link Here
|
1 |
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org> |
|
|
2 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
3 |
|
2 |
|
4 |
PORTNAME= optimfrog |
3 |
PORTNAME= optimfrog |
5 |
DISTVERSION= 4.520b1 |
4 |
PORTVERSION= 5.003 |
6 |
CATEGORIES= audio linux |
5 |
CATEGORIES= audio |
7 |
MASTER_SITES= http://www.losslessaudio.org/DownloadNew/OptimFROG_All_Linux_x86_${DISTVERSION:S/.//}.php? |
6 |
MASTER_SITES= http://losslessaudio.org/Downloads/A1C0/${DISTVERSION:S/.//}/FreeBSD/ |
8 |
DISTNAME= OptimFROG_All_Linux_x86_${DISTVERSION:S/.//} |
7 |
DISTNAME= # OptimFROG_FreeBSD_${ARCH}_${DISTVERSION:S/.//} |
9 |
|
8 |
|
10 |
MAINTAINER= ports@FreeBSD.org |
9 |
MAINTAINER= matthew@reztek.cz |
11 |
COMMENT= Lossless audio codec |
10 |
COMMENT?= Best-ratio lossless audio codec |
12 |
|
11 |
|
13 |
ONLY_FOR_ARCHS= amd64 i386 |
12 |
INSTALL_CONFLICTS?= optimfrog-sse2-[0-9]* |
14 |
|
13 |
|
|
|
14 |
ONLY_FOR_ARCHS?= amd64 i386 |
15 |
|
15 |
NO_CDROM= No commercial use |
16 |
NO_CDROM= No commercial use |
16 |
NO_BUILD= yes |
17 |
NO_BUILD= yes |
17 |
USES= zip |
18 |
USE_LDCONFIG= yes |
18 |
USE_LINUX= yes |
|
|
19 |
PLIST_FILES= bin/off bin/ofr bin/ofs |
20 |
FETCH_ARGS= -o ${DISTDIR}/${DISTFILES} |
21 |
|
19 |
|
|
|
20 |
OPTIONS_DEFINE_i386= SSE2 |
21 |
OPTIONS_DEFINE?= # |
22 |
SSE2_DESCR= Use SSE2 instructions |
23 |
SSE2_VARS= PKGNAMESUFFIX=-sse2 |
24 |
|
25 |
.include <bsd.port.pre.mk> |
26 |
|
27 |
.if ${ARCH} == "amd64" |
28 |
DISTNAME= OptimFROG_FreeBSD_x64_${DISTVERSION:S/.//} |
29 |
.else # ${ARCH} == "i386" |
30 |
. if ${PORT_OPTIONS:MSSE2} |
31 |
DISTNAME= OptimFROG_FreeBSD_x86_SSE2_${DISTVERSION:S/.//} |
32 |
. else |
33 |
DISTNAME= OptimFROG_FreeBSD_x86_${DISTVERSION:S/.//} |
34 |
. endif |
35 |
.endif |
36 |
|
22 |
do-install: |
37 |
do-install: |
23 |
@${BRANDELF} -t Linux ${WRKSRC}/off ${WRKSRC}/ofr ${WRKSRC}/ofs |
38 |
@(cd ${WRKSRC} && ./install.sh -d ${STAGEDIR}) |
24 |
@${INSTALL_PROGRAM} ${WRKSRC}/off ${WRKSRC}/ofr ${WRKSRC}/ofs ${STAGEDIR}${PREFIX}/bin/ |
|
|
25 |
|
39 |
|
26 |
.include <bsd.port.mk> |
40 |
.include <bsd.port.post.mk> |