aboutsummaryrefslogtreecommitdiffstats
path: root/audio/emms/Makefile
blob: 230ae7b53a0ab673684ef6a27252a4f5fcd456d8 (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
# Created by: Dryice Liu <dryice@dryice.name>
# $FreeBSD$

PORTNAME=   emms
PORTVERSION=    4.0
PORTREVISION=   2
CATEGORIES= audio elisp
MASTER_SITES=   GNU

MAINTAINER= ports@FreeBSD.org
COMMENT=    The Emacs Multi-Media System

LICENSE=    GPLv3

USES=       gmake makeinfo
USE_EMACS=  yes
MAKE_ENV=   SITELISP="${PREFIX}/${EMACS_SITE_LISPDIR}/emms" \
        INSTALLINFO="${TRUE}"

INFO=       emms

.include <bsd.port.pre.mk>

.if ${EMACS_PORT_NAME} != "emacs23"
PORTNAMESUFFIX= ${PKGNAMESUFFIX}
.endif

post-patch:
    @${REINPLACE_CMD} -e \
        's|^\(DESTDIR\)=|\1?=| ; \
         s|^\(PREFIX\)=$$(DESTDIR)|\1?=| ; \
         s|^\(INFODIR\)=|\1?=| ; \
         s|^\(MAN1DIR\)=$$(PREFIX)/share|\1?=$$(PREFIX)| ; \
         s|^\(SITELISP\)=|\1?=| ; \
         s|^\(INSTALLINFO\) =|INSTALLINFO ?=| ; \
         s| \($$(SITELISP)\)| $$(DESTDIR)\1|g ; \
         s| \($$(INFODIR)\)| $$(DESTDIR)\1|g ; \
         s|\($$(INFODIR)\)/emms|\1| ; \
         s| \($$(MAN1DIR)\)| $$(DESTDIR)\1|g' ${WRKSRC}/Makefile

.include <bsd.port.post.mk>