aboutsummaryrefslogtreecommitdiffstats
path: root/emulators/linux-peops-spu/Makefile
blob: b1b554b41f9971de1e80c897859c4481ce1145be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Created by: Jean-Yves Lefort <jylefort@brutele.be>
# $FreeBSD$

PORTNAME=   peops-spu
PORTVERSION=    1.9
PORTREVISION=   2
CATEGORIES= emulators linux
MASTER_SITES=   http://www.pbernert.com/
PKGNAMEPREFIX=  linux-
DISTNAME=   spupeopsoss${MAJOR}0${MINOR}

MAINTAINER= ports@FreeBSD.org
COMMENT=    A PSEmu Pro SPU plugin using the OSS interface (Linux version)

NO_WRKSUBDIR=   yes
NO_BUILD=   yes
USE_LINUX=  yes
USE_LINUX_APPS= gtk xorglibs

ONLY_FOR_ARCHS= i386 amd64

MAJOR=      ${PORTVERSION:R}
MINOR=      ${PORTVERSION:E}
PLIST_SUB+= MAJOR=${MAJOR} MINOR=${MINOR}

NO_STAGE=   yes
.include <bsd.port.pre.mk>

PSEMUPRO_PLUGINS_DIR=   ${PREFIX}/lib/psemupro/plugins
PSEMUPRO_CFGBINS_DIR=   ${PREFIX}/libexec/psemupro/cfg
PSEMUPRO_CFGFILES_DIR=  ${PREFIX}/share/psemupro/cfg

do-install:
    ${MKDIR} ${PSEMUPRO_PLUGINS_DIR}
    ${INSTALL_PROGRAM} ${WRKSRC}/libspuPeopsOSS.so.${MAJOR}.0.${MINOR} ${PSEMUPRO_PLUGINS_DIR}

    ${MKDIR} ${PSEMUPRO_CFGBINS_DIR}
    ${INSTALL_PROGRAM} ${WRKSRC}/cfgPeopsOSS ${PSEMUPRO_CFGBINS_DIR}

    ${MKDIR} ${PSEMUPRO_CFGFILES_DIR}
    ${INSTALL_DATA} ${WRKSRC}/spuPeopsOSS.cfg ${PSEMUPRO_CFGFILES_DIR}

.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} \
        ${WRKSRC}/readme_${MAJOR}_${MINOR}.txt \
        ${WRKSRC}/version_${MAJOR}_${MINOR}.txt \
        ${DOCSDIR}
.endif

.include <bsd.port.post.mk>