summaryrefslogtreecommitdiff
path: root/sysutils/asusoled/Makefile
blob: b1a6115274401007b199282447a23de571b11fd7 (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
# Created by: Jung-uk Kim <jkim@FreeBSD.org>
# $FreeBSD$

PORTNAME=	asusoled
PORTVERSION=	0.10
PORTREVISION=	7
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	jkim

MAINTAINER=	jkim@FreeBSD.org
COMMENT=	Utility for ASUS USB OLED Display

RUN_DEPENDS=	${FONTDIR}/TTF/luxisr.ttf:${PORTSDIR}/x11-fonts/font-bh-ttf

USE_SDL=	image sdl ttf
USE_RC_SUBR=	asusoled oled_clock

PORTDATA=	asus.png asus_clock.png
PORTDOCS=	README.FreeBSD
PLIST_FILES=	sbin/asusoled
SUB_FILES=	pkg-message

MAKE_ARGS+=	TTF_FONT=${FONTDIR}/TTF/luxisr.ttf

FONTDIR?=	${LOCALBASE}/lib/X11/fonts

.include <bsd.port.options.mk>

post-install:
.if !defined(NOPORTDATA)
	@${MKDIR} ${DATADIR}
.for i in ${PORTDATA}
	@${INSTALL_DATA} ${WRKSRC}/data/${i} ${DATADIR}
.endfor
.endif
.if ${PORT_OPTIONS:MDOCS}
	@${CAT} ${PKGMESSAGE} > ${WRKSRC}/README.FreeBSD
	@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
	@${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
.endfor
.endif
	@${ECHO}
	@${CAT} ${PKGMESSAGE}
	@${ECHO}

.include <bsd.port.mk>