aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/xfce4-generic-slider/Makefile
blob: bc6fcad2bb8d4e7b4b130d4783a64a05054b742b (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
# New ports collection makefile for:    xfce4-generic-slider
# Date created:             04 Jun 2010
# Whom:                 Emanuel Haupt <ehaupt@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   xfce4-generic-slider
PORTVERSION=    0.0.20100827
PORTREVISION=   3
CATEGORIES= deskutils
MASTER_SITES=   CRITICAL/

MAINTAINER= ehaupt@FreeBSD.org
COMMENT=    A slider plugin to adjust and/or monitor any numeric variable

LICENSE=    GPLv3

USE_XFCE=   panel libutil libgui
USE_PKGCONFIG=  build

CFLAGS+=    `pkg-config --cflags libxfce4panel-1.0 libxfcegui4-1.0`
LDFLAGS+=   `pkg-config --libs libxfce4panel-1.0 libxfcegui4-1.0`

post-patch:
    @${REINPLACE_CMD} -e \
        "s|@PLUGINDIR@|${PREFIX}/lib/xfce4/xfce4/panel-plugins|" \
            ${WRKSRC}/generic-slider.desktop

do-build:
    ${CC} ${CFLAGS} -c ${WRKSRC}/generic-slider.c \
        -o ${WRKSRC}/generic-slider.o
    ${CC} ${LDFLAGS} ${WRKSRC}/generic-slider.o \
        -o ${WRKSRC}/xfce4-generic-slider-plugin

do-install:
    ${MKDIR} ${PREFIX}/share/xfce4/panel-plugins
    ${MKDIR} ${PREFIX}/lib/xfce4/xfce4/panel-plugins
    ${INSTALL_DATA} ${WRKSRC}/generic-slider.desktop \
        ${PREFIX}/share/xfce4/panel-plugins
    ${INSTALL_PROGRAM} ${WRKSRC}/xfce4-generic-slider-plugin \
        ${PREFIX}/lib/xfce4/xfce4/panel-plugins

.include <bsd.port.mk>