mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
74 lines
2.2 KiB
Makefile
74 lines
2.2 KiB
Makefile
# Created by: Andrew Pantyukhin <infofarmer@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= xorg-edit
|
|
PORTVERSION= 08.08.06
|
|
CATEGORIES= x11
|
|
MASTER_SITES= SF
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}_src
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= GUI to edit xorg.conf
|
|
|
|
DEPRECATED= Depends on older version of wxGTK
|
|
EXPIRATION_DATE= 2014-07-04
|
|
|
|
LICENSE= GPLv3
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
USES= dos2unix gmake tar:bzip2
|
|
DOS2UNIX_GLOB= *.cpp *.h
|
|
USE_WX= 3.0
|
|
WX_UNICODE= yes
|
|
|
|
PLIST_FILES= bin/xorg-edit \
|
|
lib/xorg-edit/de_DE/LC_MESSAGES/xorg-edit.mo \
|
|
lib/xorg-edit/options/devices/example.xml \
|
|
lib/xorg-edit/options/devices/list.xml \
|
|
lib/xorg-edit/options/devices/nvidia.xml \
|
|
lib/xorg-edit/xorg-edit
|
|
PLIST_DIRS= lib/xorg-edit/options/devices \
|
|
lib/xorg-edit/options \
|
|
lib/xorg-edit/de_DE/LC_MESSAGES \
|
|
lib/xorg-edit/de_DE \
|
|
lib/xorg-edit
|
|
|
|
DESKTOP_ENTRIES="Xorg Edit" "" "" "${PORTNAME}" "Settings;" true
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e \
|
|
's|^CXX =|CXX ?=| ; \
|
|
s|^CXXFLAGS =|CXXFLAGS ?=|' ${WRKSRC}/libxorgedit/Makefile
|
|
@${REINPLACE_CMD} -e \
|
|
's|^CXXFLAGS =|CXXFLAGS +=| ; \
|
|
s|wx-config|$$(WX_CONFIG)| ; \
|
|
s|-O3|| ; \
|
|
s|^CXX =|CXX ?=| ; \
|
|
s|^LDFLAGS =|LDFLAGS +=| ; \
|
|
s|^$$(OBJECTS).*|%.o: %.c|' ${WRKSRC}/xorgedit/Makefile
|
|
|
|
do-configure:
|
|
@${ECHO_CMD} -n > ${WRKDIR}/xorg-edit
|
|
@${ECHO_CMD} '#!/bin/sh' >> ${WRKDIR}/xorg-edit
|
|
@${ECHO_CMD} 'cd ${PREFIX}/lib/xorg-edit && ./xorg-edit "$$@"' \
|
|
>> ${WRKDIR}/xorg-edit
|
|
@${ECHO_CMD} -n > ${WRKSRC}/Makefile
|
|
@${ECHO_CMD} 'all:' >> ${WRKSRC}/Makefile
|
|
@${ECHO_CMD} ' $$(MAKE) -C libxorgedit' >> ${WRKSRC}/Makefile
|
|
@${ECHO_CMD} ' $$(MAKE) -C xorgedit' >> ${WRKSRC}/Makefile
|
|
|
|
do-install:
|
|
(cd ${WRKDIR} && ${INSTALL_SCRIPT} xorg-edit ${STAGEDIR}${PREFIX}/bin)
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/xorg-edit
|
|
(cd ${WRKSRC} && ${INSTALL_PROGRAM} xorg-edit \
|
|
${STAGEDIR}${PREFIX}/lib/xorg-edit)
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/xorg-edit/de_DE/LC_MESSAGES
|
|
(cd ${WRKSRC}/de_DE/LC_MESSAGES && ${INSTALL_DATA} ${PORTNAME}.mo \
|
|
${STAGEDIR}${PREFIX}/lib/xorg-edit/de_DE/LC_MESSAGES)
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/xorg-edit/options/devices
|
|
(cd ${WRKSRC}/options/devices && ${INSTALL_DATA} *.xml \
|
|
${STAGEDIR}${PREFIX}/lib/xorg-edit/options/devices)
|
|
|
|
.include <bsd.port.mk>
|