aboutsummaryrefslogblamecommitdiff
path: root/x11-clocks/asclock-xlib/Makefile
blob: 95b2c312f0e53173cdb7ef4d9ee83b80b11a02de (plain) (tree)
1
2
3
4
5
6
7
8
9
           
 
                            
                      
                 
                                                
                              
 
                                    
                                     
 
                           
 
                                      
                          
                       
 

                          


                                        
                                                                                                                          
 
              
                         
                                   
                                            

             
                                                                 
                                    

                                                                                 

       
                           
# $FreeBSD$

PORTNAME=	asclock-xlib
PORTVERSION=	2.0.11
PORTREVISION=	4
CATEGORIES=	x11-clocks afterstep windowmaker
MASTER_SITES=	LOCAL/kuriyama

MAINTAINER=	kuriyama@FreeBSD.org
COMMENT=	New flavor of asclock

MAKE_JOBS_UNSAFE=	yes

WRKSRC=		${WRKDIR}/asclock-xlib
USES=		imake xorg
USE_XORG=	xpm x11

.include <bsd.port.pre.mk>

post-patch:
	@(cd ${WRKSRC}; \
	  ${MV} config.c config.c.tmp; \
	  ${SED} -e s@/usr/local/@${PREFIX}/@ -e s@/usr/share/asclock@${PREFIX}/share/asclock@ < config.c.tmp > config.c )

pre-configure:
	@(cd ${WRKSRC}; \
	  ${RM} -r default_theme; \
	  ${LN} -s themes/Orb default_theme)

post-install:
.for i in Freeamp Newstone Orb Stone beats classic penguin shaped
	(cd ${WRKSRC}/themes/${i}; \
	  ${MKDIR} ${STAGEDIR}${PREFIX}/share/asclock/${i}; \
	  ${INSTALL_DATA} *.xpm config ${STAGEDIR}${PREFIX}/share/asclock/${i}/ )
.endfor

.include <bsd.port.post.mk>