aboutsummaryrefslogblamecommitdiff
path: root/graphics/tgif-nls/Makefile
blob: 8bcd907b0777f012a9ad8adca3a42868186f5d80 (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                


                                                   
           

 
                    
                      
                        


                                                 
                    
                                              

                                           
                                                                                
 
                                                
                                                    


                      

                        



                                                                             
                                                    




                                                                          
      










                                                                        
                                                              
                 

             
                        


                                                              
                                                         
                 



                                                                    
      
                                                     

                      
# New ports collection makefile for:    tgif-nls
# Date created:         3 May 1999
# Whom:                 one@netlab.is.tsukuba.ac.jp
#
# $FreeBSD$
#

PORTNAME=	tgif
PORTVERSION=	4.1.42
CATEGORIES=	graphics
MASTER_SITES=	ftp://bourbon.usc.edu/pub/tgif/ \
		${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= tgif
PKGNAMESUFFIX=	-nls
DISTNAME=	${PORTNAME}-QPL-${PORTVERSION}

MAINTAINER=	one@netlab.is.tsukuba.ac.jp
COMMENT=	A two-dimensional drawing tool with NLS message catalogs support

LIB_DEPENDS=	intl.5:${PORTSDIR}/devel/gettext
RUN_DEPENDS=	giftopnm:${PORTSDIR}/graphics/netpbm

USE_IMAKE=	yes
MAN1=		tgif.1

.if !defined(NOPORTDOCS)
TGIFDOC=	${PREFIX}/share/doc/tgif
TGIFDEMO=	${PREFIX}/share/examples/tgif
DEMO_FILES=	an-sr-flip-flop.obj launch-demo-1.obj \
		fonts.obj launch-demo.obj keys.obj slide-demo.obj example.tex
READMES=	Copyright HISTORY LICENSE.QPL README
SPICE_FILES=	README BZ.mod DN.mod DN.sym MN.mod MN.sym MP.mod MP.sym \
		SN.mod SN.sym SP.mod SP.sym capacitor.sym connection.sym \
		demo.obj gauge.sym ground.sym in.sym out.sym port.sym \
		resistor.0tc.sym resistor.2tc.sym resistor.h.2tc.sym \
		resistor.h.sym resistor.sym
.endif

post-extract:
		${RM} -f ${WRKDIR}/${DISTNAME}/Tgif.tmpl
		${CP} ${WRKDIR}/${DISTNAME}/Tgif.tmpl-freebsd \
		      ${WRKDIR}/${DISTNAME}/Tgif.tmpl

pre-install:
		(cd ${WRKSRC} ;\
		  ${MV} tgif.Xdefaults tgif.Xdefaults.org; \
		  ${SED} -e "s#/usr/local#${PREFIX}#" \
		         -e "s#/usr/share/lib#${PREFIX}/share/locale#" \
		         tgif.Xdefaults.org > tgif.Xdefaults \
		)

post-install:
.if !defined(NOPORTDOCS)
		${MKDIR} ${TGIFDOC}; ${MKDIR} ${TGIFDEMO}
		(cd ${WRKSRC} ;\
		  ${INSTALL_DATA} ${DEMO_FILES} ${TGIFDEMO} ;\
		  ${INSTALL_DATA} ${READMES} ${TGIFDOC} \
		)
		${MKDIR} ${TGIFDEMO}/spice
		(cd ${WRKSRC}/spice ;\
		  ${INSTALL_DATA} ${SPICE_FILES} ${TGIFDEMO}/spice \
		)
.endif
		${LN} -fs tgif ${PREFIX}/bin/tgif-nls

.include <bsd.port.mk>